public class DefaultFileStoragePlugin extends PluginBase implements StorageInterface
graphicPlugins, indexPlugins, jettyPlugins, platform, queryPlugins, services, settings, storagePlugins
Constructor and Description |
---|
DefaultFileStoragePlugin() |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<StorageInputStream> |
at(java.net.URI location,
java.lang.Object... args)
Provides a means of iteration over existing objects at a specified location.
|
boolean |
disable()
Issues the plugin to become disabled.
|
boolean |
enable()
Issues the plugin to become enabled.
|
java.lang.String |
getName()
Gets the plugin's name.
|
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.
|
boolean |
isEnabled()
Verifies if the plugin is enabled.
|
void |
remove(java.net.URI location)
Removes an element at the given URI.
|
java.net.URI |
store(DicomInputStream inputStream,
java.lang.Object... args)
Stores a DICOM object into the storage.
|
java.net.URI |
store(DicomObject dicomObject,
java.lang.Object... args)
Stores a DICOM object into the storage.
|
getGraphicalPlugins, getIndexPlugins, getJettyPlugins, getQueryPlugins, getRestPlugins, getSettings, getStoragePlugins, setPlatformProxy, setSettings, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSettings, setSettings
public DefaultFileStoragePlugin()
public boolean enable()
DicooglePlugin
enable
in interface DicooglePlugin
public boolean disable()
DicooglePlugin
disable
in interface DicooglePlugin
public boolean isEnabled()
DicooglePlugin
isEnabled
in interface DicooglePlugin
public java.lang.String getScheme()
StorageInterface
getScheme
in interface StorageInterface
URI
public boolean handles(java.net.URI location)
StorageInterface
handles
in interface StorageInterface
location
- a URI containing a scheme to be verifiedpublic java.lang.Iterable<StorageInputStream> at(java.net.URI location, java.lang.Object... args)
StorageInterface
for(StorageInputStream dicomObj : storagePlugin.at("file://dataset/")){ System.err.println(dicomObj.getURI()); }
at
in interface StorageInterface
location
- the location to readargs
- a variable list of extra parameters for the retrieveStorageInputStream
public java.net.URI store(DicomObject dicomObject, java.lang.Object... args)
StorageInterface
store
in interface StorageInterface
dicomObject
- Object to be Storedargs
- a variable list of extra parameters for the retrievepublic java.net.URI store(DicomInputStream inputStream, java.lang.Object... args) throws java.io.IOException
StorageInterface
store
in interface StorageInterface
inputStream
- Object to be Storedargs
- a variable list of extra parameters for the retrievejava.io.IOException
public void remove(java.net.URI location)
StorageInterface
remove
in interface StorageInterface
location
- the URI of the stored datapublic java.lang.String getName()
PluginSet
getName
in interface DicooglePlugin
getName
in interface PluginSet
getName
in class PluginBase