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.
|
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.
|
boolean |
supports(File file)
Gets whether the given file contains text data in a supported format.
|
getInstance
create, getPlugins, getPluginService, getPluginType
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
String open(File file) throws IOException
IOException
String asHTML(File file) throws IOException
IOException
TextFormat getHandler(File file)
getHandler
in interface HandlerService<File,TextFormat>
List<TextFormat> getInstances()
getInstances
in interface HandlerService<File,TextFormat>
getInstances
in interface SingletonService<TextFormat>
boolean supports(File file)
supports
in interface HandlerService<File,TextFormat>
supports
in interface Typed<File>
Copyright © 2009–2015 SciJava. All rights reserved.