writer2latex.api
Class ConverterFactory
java.lang.Object
writer2latex.api.ConverterFactory
public class ConverterFactory
extends java.lang.Object
This is a factory class to create converters for documents in
OpenDocument/OOo 1.x format into a specific MIME type.
Converter | createConverter(String sMIME) - Create a
Converter implementation which supports
conversion into the specified MIME type
Currently supported MIME types are:
application/x-latex for LaTeX formatapplication/x-bibtex for BibTeX formattext/html for XHTML 1.0 strict formatapplication/xhtml+xml for XHTML+MathMLapplication/xml for XHTML+MathML using stylesheets from w3c's
math working group
|
static String | getDate() - Return date information
|
static String | getVersion() - Return version information
|
void | setConfig(Config config) - Define the configuration to use when converting.
|
void | setGraphicConverter(GraphicConverter gc) - Define a
GraphicConverter implementation to use for
conversion of graphic files.
|
createConverter
public Converter createConverter(String sMIME)
Create a
Converter
implementation which supports
conversion into the specified MIME type
Currently supported MIME types are:
application/x-latex
for LaTeX formatapplication/x-bibtex
for BibTeX formattext/html
for XHTML 1.0 strict formatapplication/xhtml+xml
for XHTML+MathMLapplication/xml
for XHTML+MathML using stylesheets from w3c's
math working group
sMIME
- the MIME type of the target format
- the required
Converter
or null if a converter for
the requested MIME type could not be created
getDate
public static String getDate()
Return date information
- the date for this Writer2LaTeX version
getVersion
public static String getVersion()
Return version information
setConfig
public void setConfig(Config config)
Define the configuration to use when converting. If a configuration
is specified, it will be used by converters which are later created using
the
createConverter
method
Note: This method will change in version 0.6
config
- the configuration to use
setGraphicConverter
public void setGraphicConverter(GraphicConverter gc)
Define a GraphicConverter
implementation to use for
conversion of graphic files. If a converter
is specified, it will be used by converters which are later created using
the createConverter
method
gc
- the GraphicConverter
to use