public abstract class AbstractIOPlugin<D> extends AbstractHandlerPlugin<Location> implements IOPlugin<D>
IOPlugin
s.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.
|
supports
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataType, getType, open, save, supports, supportsOpen, supportsSave, supportsSave, supportsSave
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public boolean supportsOpen(String source)
IOPlugin
supportsOpen
in interface IOPlugin<D>
public boolean supportsSave(String destination)
IOPlugin
supportsSave
in interface IOPlugin<D>
public void save(D data, String destination) throws IOException
IOPlugin
save
in interface IOPlugin<D>
IOException
public D open(String destination) throws IOException
IOPlugin
open
in interface IOPlugin<D>
IOException
Copyright © 2015–2022 SciJava. All rights reserved.