# HG changeset patch
# User František Kučera <franta-hg@frantovo.cz>
# Date 1402004465 -7200
# Node ID a598b9d90144dc04e6eb66dd9e0598a34941e1f2
# Parent  3770beeed2523e37fc4ad9ad76aea6144a8edffe
Alt2XmlReaderFactory

diff -r 3770beeed252 -r a598b9d90144 java/alt2xml-in-json/src/cz/frantovo/alt2xml/vstup/JsonReaderFactory.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/java/alt2xml-in-json/src/cz/frantovo/alt2xml/vstup/JsonReaderFactory.java	Thu Jun 05 23:41:05 2014 +0200
@@ -0,0 +1,39 @@
+/**
+ * Alt2XML
+ * Copyright © 2014 František Kučera (frantovo.cz)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package cz.frantovo.alt2xml.vstup;
+
+import cz.frantovo.alt2xml.Alt2XmlReaderFactory;
+import org.xml.sax.XMLReader;
+
+/**
+ *
+ * @author Ing. František Kučera (frantovo.cz)
+ */
+public class JsonReaderFactory implements Alt2XmlReaderFactory {
+
+	@Override
+	public boolean canRead(String systemId) {
+		throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+	}
+
+	@Override
+	public XMLReader getReader() {
+		throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+	}
+
+}
diff -r 3770beeed252 -r a598b9d90144 java/alt2xml-in-json/src/cz/frantovo/alt2xml/vstup/JsonXMLReader.java
--- a/java/alt2xml-in-json/src/cz/frantovo/alt2xml/vstup/JsonXMLReader.java	Thu Jun 05 22:02:46 2014 +0200
+++ b/java/alt2xml-in-json/src/cz/frantovo/alt2xml/vstup/JsonXMLReader.java	Thu Jun 05 23:41:05 2014 +0200
@@ -44,7 +44,7 @@
 	private DTDHandler dtdHandler;
 	private EntityResolver entityResolver;
 	private Map<String, Object> konfigurace = new HashMap<>();
-	
+
 	@Override
 	public void parse(InputSource input) throws IOException, SAXException {
 		/**
@@ -69,9 +69,9 @@
 	@Override
 	public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
 		/**
-		 * TODO: 
-		 * All XMLReaders are required to recognize 
-		 * the http://xml.org/sax/features/namespaces 
+		 * TODO:
+		 * All XMLReaders are required to recognize
+		 * the http://xml.org/sax/features/namespaces
 		 * and the http://xml.org/sax/features/namespace-prefixes feature names.
 		 */
 		throw new SAXNotSupportedException("Zatím není podporováno.");
diff -r 3770beeed252 -r a598b9d90144 java/alt2xml-lib/src/cz/frantovo/alt2xml/Alt2XmlReaderFactory.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/java/alt2xml-lib/src/cz/frantovo/alt2xml/Alt2XmlReaderFactory.java	Thu Jun 05 23:41:05 2014 +0200
@@ -0,0 +1,35 @@
+/**
+ * Alt2XML
+ * Copyright © 2014 František Kučera (frantovo.cz)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package cz.frantovo.alt2xml;
+
+import org.xml.sax.XMLReader;
+
+/**
+ *
+ * @author Ing. František Kučera (frantovo.cz)
+ */
+public interface Alt2XmlReaderFactory {
+
+	/**
+	 * @param systemId system ID of the document to be read
+	 * @return whether this alternative format is supported
+	 */
+	public boolean canRead(String systemId);
+
+	public XMLReader getReader();
+}