java/alt2xml-lib-input/src/cz/frantovo/alt2xml/ParserFactory.java
changeset 37 03f940508c72
parent 36 ad36a104623f
child 39 a5020340362b
     1.1 --- a/java/alt2xml-lib-input/src/cz/frantovo/alt2xml/ParserFactory.java	Sun Jun 08 09:53:51 2014 +0200
     1.2 +++ b/java/alt2xml-lib-input/src/cz/frantovo/alt2xml/ParserFactory.java	Sun Jun 08 09:57:33 2014 +0200
     1.3 @@ -24,7 +24,6 @@
     1.4  import javax.xml.parsers.ParserConfigurationException;
     1.5  import javax.xml.parsers.SAXParser;
     1.6  import javax.xml.parsers.SAXParserFactory;
     1.7 -import org.xml.sax.Parser;
     1.8  import org.xml.sax.SAXException;
     1.9  import org.xml.sax.SAXNotRecognizedException;
    1.10  import org.xml.sax.SAXNotSupportedException;
    1.11 @@ -116,11 +115,11 @@
    1.12  		return new AltSAXParser(new SuperReader(this));
    1.13  	}
    1.14  
    1.15 -	/**
    1.16 -	 * TODO: feature for disabling default SAXParserFactory
    1.17 -	 */
    1.18  	@Override
    1.19  	public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
    1.20 +		/**
    1.21 +		 * TODO: feature for disabling default SAXParserFactory
    1.22 +		 */
    1.23  		throw new SAXNotSupportedException("Zatím není podporováno.");
    1.24  	}
    1.25  
    1.26 @@ -128,44 +127,4 @@
    1.27  	public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException {
    1.28  		throw new SAXNotSupportedException("Zatím není podporováno.");
    1.29  	}
    1.30 -
    1.31 -	private static class AltSAXParser extends SAXParser {
    1.32 -
    1.33 -		private final XMLReader xmlReader;
    1.34 -
    1.35 -		public AltSAXParser(XMLReader xmlReader) {
    1.36 -			this.xmlReader = xmlReader;
    1.37 -		}
    1.38 -
    1.39 -		@Override
    1.40 -		@Deprecated
    1.41 -		public Parser getParser() throws SAXException {
    1.42 -			throw new SAXException("Není podporováno.");
    1.43 -		}
    1.44 -
    1.45 -		@Override
    1.46 -		public XMLReader getXMLReader() throws SAXException {
    1.47 -			return xmlReader;
    1.48 -		}
    1.49 -
    1.50 -		@Override
    1.51 -		public boolean isNamespaceAware() {
    1.52 -			return true;
    1.53 -		}
    1.54 -
    1.55 -		@Override
    1.56 -		public boolean isValidating() {
    1.57 -			return false;
    1.58 -		}
    1.59 -
    1.60 -		@Override
    1.61 -		public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException {
    1.62 -			xmlReader.setProperty(name, value);
    1.63 -		}
    1.64 -
    1.65 -		@Override
    1.66 -		public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException {
    1.67 -			return xmlReader.getProperty(name);
    1.68 -		}
    1.69 -	}
    1.70  }