public abstract class AbstractIOPlugin<D> extends AbstractHandlerPlugin<String> implements IOPlugin<D>
IOPlugin
s.Constructor and Description |
---|
AbstractIOPlugin() |
Modifier and Type | Method and Description |
---|---|
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.
|
compareTo, getInfo, getPriority, setInfo, setPriority, toString
context, getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataType
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
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
By default, this method will return true
always, since the type is
known to be compatible. But individual implementations may have other
requirements beyond class assignability.
Copyright © 2009–2015 SciJava. All rights reserved.