Class ConverterFactory

java.lang.Object
writer2latex.api.ConverterFactory

public class ConverterFactory extends Object
This is a factory class which provides static methods to create converters for documents in OpenDocument format into a specific MIME type
  • Constructor Details

    • ConverterFactory

      public ConverterFactory()
  • Method Details

    • getVersion

      public static String getVersion()
      Return the Writer2LaTeX version in the form (major version).(minor version).(patch level)
      Returns:
      the version number
    • getDate

      public static String getDate()
      Return date information
      Returns:
      the release date for this Writer2LaTeX version
    • createConverter

      public static 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 format
      • application/x-bibtex for BibTeX format
      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
    • createConfig

      public static Config createConfig(String sMIME)
      Create a Config implementation 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-latex for LaTeX format
      • application/x-bibtex for BibTeX format
      Parameters:
      sMIME - the MIME type of the target format
      Returns:
      the required Config or null if a configuration for the requested MIME type could not be created
    • createStarMathConverter

      public static StarMathConverter createStarMathConverter()
      Create a StarMathConverter implementation
      Returns:
      the converter