org.scijava.text
Class DefaultTextService
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.service.AbstractService
org.scijava.plugin.AbstractPTService<PT>
org.scijava.plugin.AbstractSingletonService<PT>
org.scijava.plugin.AbstractHandlerService<File,TextFormat>
org.scijava.text.DefaultTextService
- All Implemented Interfaces:
- Comparable<Prioritized>, Contextual, Disposable, HandlerService<File,TextFormat>, HasPluginInfo, PTService<TextFormat>, RichPlugin, SciJavaPlugin, SingletonService<TextFormat>, TypedService<File,TextFormat>, Prioritized, SciJavaService, Service, TextService, Typed<File>
public final class DefaultTextService
- extends AbstractHandlerService<File,TextFormat>
- implements TextService
Default service for working with text formats.
- Author:
- Curtis Rueden
DefaultTextService
public DefaultTextService()
open
public String open(File file)
throws IOException
- Description copied from interface:
TextService
- Reads the data from the given file into a string.
- Specified by:
open
in interface TextService
- Throws:
IOException
asHTML
public String asHTML(File file)
throws IOException
- Description copied from interface:
TextService
- Expresses the given text string as HTML.
- Specified by:
asHTML
in interface TextService
- Throws:
IOException
getPluginType
public Class<TextFormat> getPluginType()
- Description copied from interface:
PTService
- Gets the type of plugins managed by this service.
- Specified by:
getPluginType
in interface PTService<TextFormat>
getType
public Class<File> getType()
- Description copied from interface:
Typed
- Gets the type associated with the object.
- Specified by:
getType
in interface Typed<File>
Copyright © 2009–2014 SciJava. All rights reserved.