3 * Copyright © 2014 František Kučera (frantovo.cz)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package cz.frantovo.alt2xml;
19 import javax.xml.parsers.SAXParser;
20 import org.xml.sax.Parser;
21 import org.xml.sax.SAXException;
22 import org.xml.sax.SAXNotRecognizedException;
23 import org.xml.sax.SAXNotSupportedException;
24 import org.xml.sax.XMLReader;
28 * @author Ing. František Kučera (frantovo.cz)
30 public class AltSAXParser extends SAXParser {
32 private final XMLReader xmlReader;
34 public AltSAXParser(XMLReader xmlReader) {
35 this.xmlReader = xmlReader;
40 public Parser getParser() throws SAXException {
41 throw new SAXException("Není podporováno.");
45 public XMLReader getXMLReader() throws SAXException {
50 public boolean isNamespaceAware() {
55 public boolean isValidating() {
60 public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
61 xmlReader.setProperty(name, value);
65 public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
66 return xmlReader.getProperty(name);