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, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSettings, setSettingspublic DefaultFileStoragePlugin()
public boolean enable()
DicooglePluginenable in interface DicooglePluginpublic boolean disable()
DicooglePlugindisable in interface DicooglePluginpublic boolean isEnabled()
DicooglePluginisEnabled in interface DicooglePluginpublic java.lang.String getScheme()
StorageInterfacegetScheme in interface StorageInterfaceURIpublic boolean handles(java.net.URI location)
StorageInterfacehandles in interface StorageInterfacelocation - a URI containing a scheme to be verifiedpublic java.lang.Iterable<StorageInputStream> at(java.net.URI location, java.lang.Object... args)
StorageInterfacefor(StorageInputStream dicomObj : storagePlugin.at("file://dataset/")){
System.err.println(dicomObj.getURI());
}at in interface StorageInterfacelocation - the location to readargs - a variable list of extra parameters for the retrieveStorageInputStreampublic java.net.URI store(DicomObject dicomObject, java.lang.Object... args)
StorageInterfacestore in interface StorageInterfacedicomObject - 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
StorageInterfacestore in interface StorageInterfaceinputStream - Object to be Storedargs - a variable list of extra parameters for the retrievejava.io.IOExceptionpublic void remove(java.net.URI location)
StorageInterfaceremove in interface StorageInterfacelocation - the URI of the stored datapublic java.lang.String getName()
PluginSetgetName in interface DicooglePlugingetName in interface PluginSetgetName in class PluginBase