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, onEventpluginServicegetContext, setContext, toStringgetInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHandler, getInstances, supportscreate, filterInstances, getInstance, initialize, objectServicefindgetPlugins, getPluginService, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposepublic String open(File file) throws IOException
TextServiceopen in interface TextServiceIOExceptionpublic String asHTML(File file) throws IOException
TextServiceasHTML in interface TextServiceIOExceptionpublic Class<TextFormat> getPluginType()
PTServicegetPluginType in interface PTService<TextFormat>Copyright © 2015–2022 SciJava. All rights reserved.