Package org.scijava.io
Class AbstractIOPlugin<D>
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.plugin.AbstractTypedPlugin<D>
-
- org.scijava.plugin.AbstractHandlerPlugin<Location>
-
- org.scijava.io.AbstractIOPlugin<D>
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Identifiable,IOPlugin<D>,Locatable,Logged,HandlerPlugin<Location>,HasPluginInfo,RichPlugin,SciJavaPlugin,SingletonPlugin,TypedPlugin<Location>,Prioritized,Typed<Location>,Versioned
- Direct Known Subclasses:
ScriptIOPlugin,TextIOPlugin
public abstract class AbstractIOPlugin<D> extends AbstractHandlerPlugin<Location> implements IOPlugin<D>
Abstract base class forIOPlugins.- Author:
- Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description AbstractIOPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dopen(String destination)Opens data from the given source.voidsave(D data, String destination)Saves the given data to the specified destination.booleansupportsOpen(String source)Checks whether the I/O plugin can open data from the given source.booleansupportsSave(String destination)Checks whether the I/O plugin can save data to the given destination.-
Methods inherited from class org.scijava.plugin.AbstractTypedPlugin
supports
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority, toString
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.io.IOPlugin
getDataType, getType, open, save, supports, supportsOpen, supportsSave, supportsSave, supportsSave
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
supportsOpen
public boolean supportsOpen(String source)
Description copied from interface:IOPluginChecks whether the I/O plugin can open data from the given source.- Specified by:
supportsOpenin interfaceIOPlugin<D>
-
supportsSave
public boolean supportsSave(String destination)
Description copied from interface:IOPluginChecks whether the I/O plugin can save data to the given destination.- Specified by:
supportsSavein interfaceIOPlugin<D>
-
save
public void save(D data, String destination) throws IOException
Description copied from interface:IOPluginSaves the given data to the specified destination.- Specified by:
savein interfaceIOPlugin<D>- Throws:
IOException
-
open
public D open(String destination) throws IOException
Description copied from interface:IOPluginOpens data from the given source.- Specified by:
openin interfaceIOPlugin<D>- Throws:
IOException
-
-