java/alt2xml-lib-input/src/cz/frantovo/alt2xml/SuperReader.java
changeset 36 ad36a104623f
parent 32 ecc2731a5a46
child 38 3de77c1ac95e
     1.1 --- a/java/alt2xml-lib-input/src/cz/frantovo/alt2xml/SuperReader.java	Sun Jun 08 00:01:29 2014 +0200
     1.2 +++ b/java/alt2xml-lib-input/src/cz/frantovo/alt2xml/SuperReader.java	Sun Jun 08 09:53:51 2014 +0200
     1.3 @@ -52,9 +52,9 @@
     1.4  	@Override
     1.5  	public void parse(InputSource input) throws IOException, SAXException {
     1.6  
     1.7 -		input = new AltInputSource(entityResolver, input);
     1.8 +		AltInputSource altInput = new AltInputSource(entityResolver, input);
     1.9  
    1.10 -		XMLReader reader = readerFinder.findReader(input.getSystemId());
    1.11 +		XMLReader reader = readerFinder.findReader(altInput);
    1.12  
    1.13  		reader.setContentHandler(contentHandler);
    1.14  		reader.setDTDHandler(dtdHandler);
    1.15 @@ -69,7 +69,7 @@
    1.16  			reader.setFeature(e.getKey(), e.getValue());
    1.17  		}
    1.18  
    1.19 -		reader.parse(input);
    1.20 +		reader.parse(altInput);
    1.21  	}
    1.22  
    1.23  	@Override