org.scijava.script.io
Class ScriptIOPlugin

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.plugin.AbstractTypedPlugin<D>
              extended by org.scijava.plugin.AbstractHandlerPlugin<String>
                  extended by org.scijava.io.AbstractIOPlugin<String>
                      extended by org.scijava.script.io.ScriptIOPlugin
All Implemented Interfaces:
Comparable<Prioritized>, Contextual, IOPlugin<String>, HandlerPlugin<String>, HasPluginInfo, RichPlugin, SciJavaPlugin, SingletonPlugin, TypedPlugin<String>, Prioritized, Typed<String>

public class ScriptIOPlugin
extends AbstractIOPlugin<String>

IOPlugin for scripts.

Author:
Curtis Rueden
See Also:
ScriptService

Constructor Summary
ScriptIOPlugin()
           
 
Method Summary
 Class<String> getDataType()
          The type of data opened and/or saved by the plugin.
 String open(String source)
          Opens data from the given source.
 boolean supportsOpen(String source)
          Checks whether the I/O plugin can open data from the given source.
 
Methods inherited from class org.scijava.io.AbstractIOPlugin
getType, save, supports, supportsSave, supportsSave
 
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.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

ScriptIOPlugin

public ScriptIOPlugin()
Method Detail

getDataType

public Class<String> getDataType()
Description copied from interface: IOPlugin
The type of data opened and/or saved by the plugin.


supportsOpen

public boolean supportsOpen(String source)
Description copied from interface: IOPlugin
Checks whether the I/O plugin can open data from the given source.

Specified by:
supportsOpen in interface IOPlugin<String>
Overrides:
supportsOpen in class AbstractIOPlugin<String>

open

public String open(String source)
            throws IOException
Description copied from interface: IOPlugin
Opens data from the given source.

Specified by:
open in interface IOPlugin<String>
Overrides:
open in class AbstractIOPlugin<String>
Throws:
IOException


Copyright © 2009–2015 SciJava. All rights reserved.