Package com.artofsolving.jodconverter
Class BasicDocumentFormatRegistry
java.lang.Object
com.artofsolving.jodconverter.BasicDocumentFormatRegistry
- All Implemented Interfaces:
DocumentFormatRegistry
- Direct Known Subclasses:
DefaultDocumentFormatRegistry
,XmlDocumentFormatRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDocumentFormat
(DocumentFormat documentFormat) protected List
getFormatByFileExtension
(String extension) getFormatByMimeType
(String mimeType)
-
Constructor Details
-
BasicDocumentFormatRegistry
public BasicDocumentFormatRegistry()
-
-
Method Details
-
addDocumentFormat
-
getDocumentFormats
-
getFormatByFileExtension
- Specified by:
getFormatByFileExtension
in interfaceDocumentFormatRegistry
- Parameters:
extension
- the file extension- Returns:
- the DocumentFormat for this extension, or null if the extension is not mapped
-
getFormatByMimeType
- Specified by:
getFormatByMimeType
in interfaceDocumentFormatRegistry
-