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, objectService
find
getPlugins, getPluginService, getPluginType, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
String open(File file) throws IOException
IOException
String asHTML(File file) throws IOException
IOException
default 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.