public final class DefaultTextService extends AbstractHandlerService<File,TextFormat> implements TextService
Constructor and Description |
---|
DefaultTextService() |
Modifier and Type | Method and Description |
---|---|
String |
asHTML(File file)
Expresses the given text string as HTML.
|
Class<TextFormat> |
getPluginType()
Gets the type of plugins managed by this service.
|
Class<File> |
getType()
Gets the type associated with the object.
|
String |
open(File file)
Reads the data from the given file into a string.
|
getHandler, supports
create, filterInstances, getInstance, getInstances, initialize
getPlugins, getPluginService
dispose, getContext, registerEventHandlers, setContext, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHandler, getInstances, supports
getInstance
create, getPlugins, getPluginService
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
public String open(File file) throws IOException
TextService
open
in interface TextService
IOException
public String asHTML(File file) throws IOException
TextService
asHTML
in interface TextService
IOException
public Class<TextFormat> getPluginType()
PTService
getPluginType
in interface PTService<TextFormat>
Copyright © 2009–2015 SciJava. All rights reserved.