public abstract class AbstractIOPlugin<D> extends AbstractHandlerPlugin<Location> implements IOPlugin<D>
IOPlugins.| Constructor and Description |
|---|
AbstractIOPlugin() |
| Modifier and Type | Method and Description |
|---|---|
D |
open(String destination)
Opens data from the given source.
|
void |
save(D data,
String destination)
Saves the given data to the specified destination.
|
boolean |
supportsOpen(String source)
Checks whether the I/O plugin can open data from the given source.
|
boolean |
supportsSave(String destination)
Checks whether the I/O plugin can save data to the given destination.
|
supportsgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataType, getType, open, save, supports, supportsOpen, supportsSave, supportsSave, supportsSavegetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic boolean supportsOpen(String source)
IOPluginsupportsOpen in interface IOPlugin<D>public boolean supportsSave(String destination)
IOPluginsupportsSave in interface IOPlugin<D>public void save(D data, String destination) throws IOException
IOPluginsave in interface IOPlugin<D>IOExceptionpublic D open(String destination) throws IOException
IOPluginopen in interface IOPlugin<D>IOExceptionCopyright © 2015–2022 SciJava. All rights reserved.