Cleaned code.

This commit is contained in:
Christian P. MOMON 2016-07-26 05:40:43 +02:00
parent 4bc5a8e8c4
commit 931f1e1214

View file

@ -44,7 +44,6 @@ import fr.devinsy.util.xml.XMLTag.TagType;
*/
public class XMLReader
{
private static final Logger logger = LoggerFactory.getLogger(XMLReader.class);
protected XMLEventReader in;
@ -67,7 +66,6 @@ public class XMLReader
*/
public XMLReader(final File file) throws FileNotFoundException, XMLStreamException
{
this.nextEvent = null;
XMLInputFactory factory = XMLInputFactory.newInstance();
this.in = factory.createXMLEventReader(new FileInputStream(file), "UTF-8");
@ -80,7 +78,6 @@ public class XMLReader
*/
public XMLReader(final InputStream source) throws XMLStreamException
{
this.nextEvent = null;
XMLInputFactory factory = XMLInputFactory.newInstance();
this.in = factory.createXMLEventReader(source);
@ -93,7 +90,6 @@ public class XMLReader
*/
public XMLReader(final Reader source) throws XMLStreamException
{
this.nextEvent = null;
XMLInputFactory factory = XMLInputFactory.newInstance();
this.in = factory.createXMLEventReader(source);
@ -542,7 +538,6 @@ public class XMLReader
//
result = readTag();
//
//
if (result == null)
{