writer2latex.api
public interface Converter
ConverterFactory
Method Summary | |
---|---|
ConverterResult | convert(InputStream is, String sTargetFileName) Convert a document
|
ConverterResult | convert(File source, String sTargetFileName) Convert a document
|
Config | getConfig() Get the interface for the configuration of this converter
|
void | readTemplate(InputStream is) Read a template to use as a base for the converted document.
|
void | readTemplate(File file) Read a template to use as a base for the converted document.
|
void | setGraphicConverter(GraphicConverter gc) Define a GraphicConverter implementation to use for
conversion of graphic files. |
Parameters: is an InputStream
from which to read the source document. sTargetFileName the file name to use for the converted document
(if the converted document is a compound document consisting consisting
of several files, this name will be used for the master document)
Returns: a ConverterResult
containing the converted document
Throws: IOException if some exception occurs while reading the document
Parameters: source a File
from which to read the source document. sTargetFileName the file name to use for the converted document
(if the converted document is a compound document consisting consisting
of several files, this name will be used for the master document)
Returns: a ConverterResult
containing the converted document
Throws: FileNotFoundException if the file does not exist IOException if some exception occurs while reading the document
Returns: the configuration
Converter
implementation.
Parameters: is an InputStream
from which to read the template
Throws: IOException if some exception occurs while reading the template
Converter
implementation.
Parameters: file a file from which to read the template
Throws: IOException if the file does not exist or some exception occurs while reading the template
GraphicConverter
implementation to use for
conversion of graphic files. If no converter is specified, graphic
files will not be converted into other formats.
Parameters: gc the GraphicConverter
to use