public final class DefaultIOService extends AbstractHandlerService<String,IOPlugin<?>> implements IOService
IOService.| Constructor and Description |
|---|
DefaultIOService() |
| Modifier and Type | Method and Description |
|---|---|
Object |
open(String source)
Loads data from the given source.
|
void |
save(Object data,
String destination)
Saves data to the given destination.
|
getInstance, getInstances, objectService, onEvent, onEventpluginServicegetContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOpener, getPluginType, getSaver, getTypegetHandler, getInstances, supportscreate, filterInstances, getInstance, initialize, objectServicefindgetPlugins, getPluginService, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic Object open(String source) throws IOException
IOService
The opener to use is automatically determined based on available
IOPlugins; see IOService.getOpener(String).
open in interface IOServicesource - The source (e.g., file path) from which to data should be
loaded.IOException - if something goes wrong loading the data.public void save(Object data, String destination) throws IOException
IOService
The saver to use is automatically determined based on available
IOPlugins; see IOService.getSaver(Object, String).
save in interface IOServicedata - The data to be saved to the destination.destination - The destination (e.g., file path) to which data should
be saved.IOException - if something goes wrong saving the data.Copyright © 2009–2020 SciJava. All rights reserved.