java/alt2xml-bin/src/cz/frantovo/alt2xml/SAXTovarna.java
changeset 11 aaf6648af0aa
parent 7 9107f7df660c
child 15 b890783e4043
     1.1 --- a/java/alt2xml-bin/src/cz/frantovo/alt2xml/SAXTovarna.java	Thu Jun 05 15:03:50 2014 +0200
     1.2 +++ b/java/alt2xml-bin/src/cz/frantovo/alt2xml/SAXTovarna.java	Thu Jun 05 22:01:58 2014 +0200
     1.3 @@ -1,3 +1,20 @@
     1.4 +/**
     1.5 + * Alt2XML
     1.6 + * Copyright © 2014 František Kučera (frantovo.cz)
     1.7 + *
     1.8 + * This program is free software: you can redistribute it and/or modify
     1.9 + * it under the terms of the GNU General Public License as published by
    1.10 + * the Free Software Foundation, either version 3 of the License, or
    1.11 + * (at your option) any later version.
    1.12 + *
    1.13 + * This program is distributed in the hope that it will be useful,
    1.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    1.16 + * GNU General Public License for more details.
    1.17 + *
    1.18 + * You should have received a copy of the GNU General Public License
    1.19 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
    1.20 + */
    1.21  package cz.frantovo.alt2xml;
    1.22  
    1.23  import cz.frantovo.alt2xml.vstup.SuperReader;
    1.24 @@ -18,7 +35,7 @@
    1.25  
    1.26  	@Override
    1.27  	public SAXParser newSAXParser() throws ParserConfigurationException, SAXException {
    1.28 -		return new MůjParser(new SuperReader());
    1.29 +		return new AltSAXParser(new SuperReader());
    1.30  	}
    1.31  
    1.32  	@Override
    1.33 @@ -31,15 +48,16 @@
    1.34  		throw new SAXNotSupportedException("Zatím není podporováno.");
    1.35  	}
    1.36  
    1.37 -	private static class MůjParser extends SAXParser {
    1.38 +	private static class AltSAXParser extends SAXParser {
    1.39  
    1.40  		private XMLReader xmlReader;
    1.41  
    1.42 -		public MůjParser(XMLReader xmlReader) {
    1.43 +		public AltSAXParser(XMLReader xmlReader) {
    1.44  			this.xmlReader = xmlReader;
    1.45  		}
    1.46  
    1.47  		@Override
    1.48 +		@Deprecated
    1.49  		public Parser getParser() throws SAXException {
    1.50  			throw new SAXException("Není podporováno.");
    1.51  		}
    1.52 @@ -51,7 +69,7 @@
    1.53  
    1.54  		@Override
    1.55  		public boolean isNamespaceAware() {
    1.56 -			return false;
    1.57 +			return true;
    1.58  		}
    1.59  
    1.60  		@Override