Package writer2latex.api
Class ConverterFactory
- java.lang.Object
-
- writer2latex.api.ConverterFactory
-
public class ConverterFactory extends java.lang.ObjectThis is a factory class which provides static methods to create converters for documents in OpenDocument (or OpenOffice.org 1.x) format into a specific MIME type
-
-
Constructor Summary
Constructors Constructor Description ConverterFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BatchConvertercreateBatchConverter(java.lang.String sMIME)Create aBatchConverterimplementation which supports conversion into the specified MIME typestatic ConvertercreateConverter(java.lang.String sMIME)Create aConverterimplementation which supports conversion into the specified MIME type.static StarMathConvertercreateStarMathConverter()Create aStarMathConverterimplementationstatic java.lang.StringgetDate()Return date informationstatic java.lang.StringgetVersion()Return version information
-
-
-
Method Detail
-
getVersion
public static java.lang.String getVersion()
Return version information- Returns:
- the Writer2LaTeX version in the form (major version).(minor version).(patch level) an uneven minor version indicates a development release
-
getDate
public static java.lang.String getDate()
Return date information- Returns:
- the release date for this Writer2LaTeX version
-
createConverter
public static Converter createConverter(java.lang.String sMIME)
Create a
Converterimplementation which supports conversion into the specified MIME type.Currently supported MIME types are:
application/x-latexfor LaTeX formatapplication/x-bibtexfor BibTeX formattext/htmlfor XHTML 1.0 strict formatapplication/xhtml+xmlfor XHTML+MathMLapplication/xmlfor XHTML+MathML using stylesheets from w3c's math working group
- 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
-
createBatchConverter
public static BatchConverter createBatchConverter(java.lang.String sMIME)
Create a
BatchConverterimplementation which supports conversion into the specified MIME typeThe only currently supported MIME type is
text/html(XHTML 1.0 strict)- Parameters:
sMIME- the MIME type of the target format- Returns:
- the required
BatchConverteror null if a converter for the requested MIME type could not be created
-
createStarMathConverter
public static StarMathConverter createStarMathConverter()
Create aStarMathConverterimplementation- Returns:
- the converter
-
-