Package writer2latex.api
Class ConverterFactory
java.lang.Object
writer2latex.api.ConverterFactory
This is a factory class which provides static methods to create converters
for documents in OpenDocument format into a specific MIME type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigcreateConfig(String sMIME) Create aConfigimplementation which supports configuration for export to the specified MIME type.static ConvertercreateConverter(String sMIME) Create aConverterimplementation which supports conversion into the specified MIME type.static StarMathConverterCreate aStarMathConverterimplementationstatic StringgetDate()Return date informationstatic StringReturn the Writer2LaTeX version in the form (major version).
-
Constructor Details
-
ConverterFactory
public ConverterFactory()
-
-
Method Details
-
getVersion
Return the Writer2LaTeX version in the form (major version).(minor version).(patch level)- Returns:
- the version number
-
getDate
Return date information- Returns:
- the release date for this Writer2LaTeX version
-
createConverter
Create aConverterimplementation which supports conversion into the specified MIME type. Currently supported MIME types are:application/x-latexfor LaTeX formatapplication/x-bibtexfor BibTeX format
- Parameters:
sMIME- the MIME type of the target format- Returns:
- the required
Converteror null if a converter for the requested MIME type could not be created
-
createConfig
Create aConfigimplementation which supports configuration for export to the specified MIME type. This method is intended for stand alone usage (read/write configuration). Currently supported MIME types are:application/x-latexfor LaTeX formatapplication/x-bibtexfor BibTeX format
- Parameters:
sMIME- the MIME type of the target format- Returns:
- the required
Configor null if a configuration for the requested MIME type could not be created
-
createStarMathConverter
Create aStarMathConverterimplementation- Returns:
- the converter
-