|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.uadetector.datastore.AbstractDataStore
public abstract class AbstractDataStore
The abstract implementation to store UAS data only in the heap space.
A store must always have an usable instance of Data. It is recommended to initialize it with the supplied UAS
file in the uadetector-resources module.
| Field Summary |
|---|
| Fields inherited from interface net.sf.uadetector.datastore.DataStore |
|---|
DEFAULT_CHARSET, DEFAULT_DATA_URL, DEFAULT_VERSION_URL |
| Constructor Summary | |
|---|---|
protected |
AbstractDataStore(Data data,
DataReader reader,
java.net.URL dataUrl,
java.net.URL versionUrl,
java.nio.charset.Charset charset)
Constructs an new instance of AbstractDataStore. |
protected |
AbstractDataStore(DataReader reader,
java.lang.String dataUrl,
java.lang.String versionUrl,
java.nio.charset.Charset charset)
Constructs an AbstractDataStore by reading the given dataUrl as UAS data. |
protected |
AbstractDataStore(DataReader reader,
java.net.URL dataUrl,
java.net.URL versionUrl,
java.nio.charset.Charset charset)
Constructs an AbstractDataStore by reading the given dataUrl as UAS data. |
| Method Summary | |
|---|---|
java.nio.charset.Charset |
getCharset()
Gets the character set in which the UAS data will be read. |
Data |
getData()
Gets the UAS data which are currently set. |
DataReader |
getDataReader()
Gets the data reader to read in UAS data. |
java.net.URL |
getDataUrl()
Gets the URL from which the UAS data can be read. |
java.net.URL |
getVersionUrl()
Gets the URL from which version information about the UAS data can be read. |
protected static Data |
readData(DataReader reader,
java.net.URL url,
java.nio.charset.Charset charset)
This method reads the given URL by using an DataReader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractDataStore(@Nonnull
Data data,
@Nonnull
DataReader reader,
@Nonnull
java.net.URL dataUrl,
@Nonnull
java.net.URL versionUrl,
@Nonnull
java.nio.charset.Charset charset)
AbstractDataStore.
data - first UAS data which will be available in the storereader - data reader to read the given dataUrldataUrl - URL to UAS dataversionUrl - URL to version information about the given UAS datacharset - the character set in which the data should be read
net.sf.qualitycheck.exception.IllegalNullArgumentException - if one of the given arguments is null
protected AbstractDataStore(DataReader reader,
java.lang.String dataUrl,
java.lang.String versionUrl,
java.nio.charset.Charset charset)
AbstractDataStore by reading the given dataUrl as UAS data.
reader - data reader to read the given dataUrldataUrl - URL to UAS dataversionUrl - URL to version information about the given UAS datacharset - the character set in which the data should be read
net.sf.qualitycheck.exception.IllegalNullArgumentException - if one of the given arguments is null
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given strings are not valid URLs
protected AbstractDataStore(DataReader reader,
java.net.URL dataUrl,
java.net.URL versionUrl,
java.nio.charset.Charset charset)
AbstractDataStore by reading the given dataUrl as UAS data.
reader - data reader to read the given dataUrldataUrl - URL to UAS dataversionUrl - URL to version information about the given UAS datacharset - the character set in which the data should be read
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given argument is null
net.sf.qualitycheck.exception.IllegalStateOfArgumentException - if the created instance of Data is empty| Method Detail |
|---|
protected static final Data readData(@Nonnull
DataReader reader,
@Nonnull
java.net.URL url,
@Nonnull
java.nio.charset.Charset charset)
URL by using an DataReader. The new created instance of Data
will be returned.
reader - data reader to read the given dataUrlurl - URL to UAS datacharset - the character set in which the data should be read
Data or Data.EMPTY if an error occurred, but never null
net.sf.qualitycheck.exception.IllegalNullArgumentException - if the given argument is nullpublic java.nio.charset.Charset getCharset()
DataStore
getCharset in interface DataStorepublic Data getData()
DataStore
getData in interface DataStorepublic DataReader getDataReader()
DataStore
getDataReader in interface DataStorepublic java.net.URL getDataUrl()
DataStore
getDataUrl in interface DataStorepublic java.net.URL getVersionUrl()
DataStore
getVersionUrl in interface DataStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||