From 6f925fc3d0c1afd671b1c451c989c0aa75e506a1 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Wed, 19 Feb 2020 08:46:01 +0100 Subject: [PATCH] Added mime type check --- src/main/java/writer2latex/api/ConverterFactory.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/writer2latex/api/ConverterFactory.java b/src/main/java/writer2latex/api/ConverterFactory.java index 54a6823..13a4c2b 100644 --- a/src/main/java/writer2latex/api/ConverterFactory.java +++ b/src/main/java/writer2latex/api/ConverterFactory.java @@ -31,8 +31,8 @@ package writer2latex.api; public class ConverterFactory { // Version information - private static final String VERSION = "1.9.1"; - private static final String DATE = "2018-03-06"; + private static final String VERSION = "0.4.4"; + private static final String DATE = "2019-02-11"; /** Return the Writer2LaTeX version in the form * (major version).(minor version).(patch level)
@@ -95,6 +95,9 @@ public class ConverterFactory { else if (MIMETypes.EPUB.equals(sMIME)) { converter = createInstance("writer2latex.epub.EPUBConverter"); } + else if (MIMETypes.RDF.equals(sMIME)) { + converter = createInstance("writer2latex.rdf.RDFConverter"); + } return converter instanceof Converter ? (Converter) converter : null; }