Added mime type check

This commit is contained in:
Georgy Litvinov 2020-02-19 08:46:01 +01:00
parent 6863b483ed
commit 6f925fc3d0

View file

@ -31,8 +31,8 @@ package writer2latex.api;
public class ConverterFactory { public class ConverterFactory {
// Version information // Version information
private static final String VERSION = "1.9.1"; private static final String VERSION = "0.4.4";
private static final String DATE = "2018-03-06"; private static final String DATE = "2019-02-11";
/** Return the Writer2LaTeX version in the form /** Return the Writer2LaTeX version in the form
* (major version).(minor version).(patch level)<br/> * (major version).(minor version).(patch level)<br/>
@ -95,6 +95,9 @@ public class ConverterFactory {
else if (MIMETypes.EPUB.equals(sMIME)) { else if (MIMETypes.EPUB.equals(sMIME)) {
converter = createInstance("writer2latex.epub.EPUBConverter"); converter = createInstance("writer2latex.epub.EPUBConverter");
} }
else if (MIMETypes.RDF.equals(sMIME)) {
converter = createInstance("writer2latex.rdf.RDFConverter");
}
return converter instanceof Converter ? (Converter) converter : null; return converter instanceof Converter ? (Converter) converter : null;
} }