Package writer2xhtml.api
Class ConverterFactory
java.lang.Object
writer2xhtml.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
-
Constructor Details
-
ConverterFactory
public ConverterFactory()
-
-
Method Details
-
getVersion
Return the Writer2xhtml version in the form (major version).(minor version).(patch level)
Development versions have an odd minor version number- Returns:
- the version number
-
getDate
Return date information- Returns:
- the release date for this Writer2xhtml version
-
createConverter
Create a
Converterimplementation which supports conversion into the specified MIME type.Currently supported MIME types are:
text/htmlfor XHTML 1.0 strict formatapplication/xhtml11for XHTML 1.1 format Note that this is not the recommended media type for XHTML 1.1 (see http://www.w3.org/TR/xhtml-media-types/), but it is used internally by Writer2xhtml to distinguish from XHTML+MathMLapplication/xhtml+xmlfor XHTML+MathMLtext/html5for HTML5 documents Note that this is not the recommended media type for HTML5 (see http://wiki.whatwg.org/), but it is used internally by Writer2xhtml to distinguish XHTML from HTML5application/epub+zipfor EPUB formatepub3for EPUB 3 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
-