public interface TextService extends HandlerService<File,TextFormat>, SciJavaService
| Modifier and Type | Method and Description |
|---|---|
String |
asHTML(File file)
Expresses the given text string as HTML.
|
default TextFormat |
getHandler(File file)
Gets the text format which best handles the given file.
|
List<TextFormat> |
getInstances()
Gets the list of available text formats.
|
String |
open(File file)
Reads the data from the given file into a string.
|
default boolean |
supports(File file)
Gets whether the given file contains text data in a supported format.
|
create, filterInstances, getInstance, initialize, objectServicefindgetPlugins, getPluginService, getPluginType, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposeString open(File file) throws IOException
IOExceptionString asHTML(File file) throws IOException
IOExceptiondefault TextFormat getHandler(File file)
getHandler in interface HandlerService<File,TextFormat>List<TextFormat> getInstances()
getInstances in interface HandlerService<File,TextFormat>getInstances in interface SingletonService<TextFormat>default boolean supports(File file)
supports in interface HandlerService<File,TextFormat>supports in interface Typed<File>Copyright © 2015–2022 SciJava. All rights reserved.