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.
|
getInstance, getInstances, objectService, onEvent, onEvent
pluginService
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHandler, getInstances, supports
create, filterInstances, getInstance, initialize, objectService
find
getPlugins, getPluginService, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
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 © 2015–2022 SciJava. All rights reserved.