writer2latex.api

Class ConverterFactory

public class ConverterFactory extends Object

This 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
Method Summary
static BatchConvertercreateBatchConverter(String sMIME)

Create a BatchConverter implementation which supports conversion into the specified MIME type

The only currently supported MIME type is text/html (XHTML 1.0 strict)

static ConvertercreateConverter(String sMIME)

Create a Converter implementation which supports conversion into the specified MIME type.

Currently supported MIME types are:

  • application/x-latex for LaTeX format
  • application/x-bibtex for BibTeX format
  • text/html for XHTML 1.0 strict format
  • application/xhtml+xml for XHTML+MathML
  • application/xml for XHTML+MathML using stylesheets from w3c's math working group
static StarMathConvertercreateStarMathConverter()
Create a StarMathConverter implementation
static StringgetDate()
Return date information
static StringgetVersion()
Return version information

Method Detail

createBatchConverter

public static BatchConverter createBatchConverter(String sMIME)

Create a BatchConverter implementation which supports conversion into the specified MIME type

The only currently supported MIME type is text/html (XHTML 1.0 strict)

Parameters: sMIME the MIME type of the target format

Returns: the required BatchConverter or null if a converter for the requested MIME type could not be created

createConverter

public static Converter createConverter(String sMIME)

Create a Converter implementation which supports conversion into the specified MIME type.

Currently supported MIME types are:

Parameters: sMIME the MIME type of the target format

Returns: the required Converter or null if a converter for the requested MIME type could not be created

createStarMathConverter

public static StarMathConverter createStarMathConverter()
Create a StarMathConverter implementation

Returns: the converter

getDate

public static String getDate()
Return date information

Returns: the release date for this Writer2LaTeX version

getVersion

public static String getVersion()
Return version information

Returns: the Writer2LaTeX version in the form (major version).(minor version).(development version).(patch level)