public interface StorageInterface extends DicooglePlugin
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<StorageInputStream> |
at(java.net.URI location,
java.lang.Object... parameters)
Provides a means of iteration over existing objects at a specified location.
|
java.lang.String |
getScheme()
Gets the scheme URI of this storage plugin.
|
boolean |
handles(java.net.URI location)
Checks whether the file in the given path can be handled by this storage plugin.
|
void |
remove(java.net.URI location)
Removes an element at the given URI.
|
java.net.URI |
store(DicomInputStream inputStream,
java.lang.Object... parameters)
Stores a new element into the storage.
|
java.net.URI |
store(DicomObject dicomObject,
java.lang.Object... parameters)
Stores a DICOM object into the storage.
|
disable, enable, getName, getSettings, isEnabled, setSettings
java.lang.String getScheme()
URI
boolean handles(java.net.URI location)
location
- a URI containing a scheme to be verifiedjava.lang.Iterable<StorageInputStream> at(java.net.URI location, java.lang.Object... parameters)
for(StorageInputStream dicomObj : storagePlugin.at("file://dataset/")){ System.err.println(dicomObj.getURI()); }
location
- the location to readparameters
- a variable list of extra parameters for the retrieveStorageInputStream
java.net.URI store(DicomObject dicomObject, java.lang.Object... parameters)
dicomObject
- Object to be Storedparameters
- a variable list of extra parameters for the retrievejava.net.URI store(DicomInputStream inputStream, java.lang.Object... parameters) throws java.io.IOException
inputStream
- an input stream with the contents to be storedparameters
- a variable list of extra parameters for the retrievejava.io.IOException
- if an I/O error occursvoid remove(java.net.URI location)
location
- the URI of the stored data