|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.plugin.AbstractTypedPlugin<D>
org.scijava.plugin.AbstractHandlerPlugin<String>
org.scijava.io.AbstractIOPlugin<D>
public abstract class AbstractIOPlugin<D>
Abstract base class for IOPlugin
s.
Constructor Summary | |
---|---|
AbstractIOPlugin()
|
Method Summary | |
---|---|
Class<String> |
getType()
Gets the type associated with the object. |
D |
open(String source)
Opens data from the given source. |
void |
save(D data,
String destination)
Saves the given data to the specified destination. |
boolean |
supports(String descriptor)
Gets whether this object is compatible with the given data object. |
boolean |
supportsOpen(String source)
Checks whether the I/O plugin can open data from the given source. |
boolean |
supportsSave(Object data,
String destination)
Checks whether the I/O plugin can save the given data to the specified destination. |
boolean |
supportsSave(String destination)
Checks whether the I/O plugin can save data to the given destination. |
Methods inherited from class org.scijava.plugin.AbstractRichPlugin |
---|
compareTo, getInfo, getPriority, setInfo, setPriority, toString |
Methods inherited from class org.scijava.AbstractContextual |
---|
context, getContext, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.scijava.io.IOPlugin |
---|
getDataType |
Methods inherited from interface org.scijava.Contextual |
---|
context, getContext, setContext |
Methods inherited from interface org.scijava.Prioritized |
---|
getPriority, setPriority |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.scijava.plugin.HasPluginInfo |
---|
getInfo, setInfo |
Constructor Detail |
---|
public AbstractIOPlugin()
Method Detail |
---|
public boolean supportsOpen(String source)
IOPlugin
supportsOpen
in interface IOPlugin<D>
public boolean supportsSave(String destination)
IOPlugin
supportsSave
in interface IOPlugin<D>
public boolean supportsSave(Object data, String destination)
IOPlugin
supportsSave
in interface IOPlugin<D>
public D open(String source) throws IOException
IOPlugin
open
in interface IOPlugin<D>
IOException
public void save(D data, String destination) throws IOException
IOPlugin
save
in interface IOPlugin<D>
IOException
public boolean supports(String descriptor)
Typed
Typically, this will be the case when data.getClass()
is assignable
to the type associated with the object (i.e., the one returned by
Typed.getType()
). But individual implementations may have other
requirements beyond class assignability.
supports
in interface Typed<String>
supports
in class AbstractTypedPlugin<String>
public Class<String> getType()
Typed
getType
in interface Typed<String>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |