org.sonar.api.utils
Class StaxParser
java.lang.Object
org.sonar.api.utils.StaxParser
public class StaxParser
- extends Object
- Since:
- 1.10
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaxParser
public StaxParser(StaxParser.XmlStreamHandler streamHandler)
- Stax parser for a given stream handler and iso control chars set awarness to off
- Parameters:
streamHandler
- the xml stream handler
StaxParser
public StaxParser(StaxParser.XmlStreamHandler streamHandler,
boolean isoControlCharsAwareParser)
- Stax parser for a given stream handler and iso control chars set awarness to on.
The iso control chars in the xml file will be replaced by simple spaces, usefull for
potentially bogus XML files to parse, this has a small perfs overhead so use it only when necessary
- Parameters:
streamHandler
- the xml stream handlerisoControlCharsAwareParser
- true or false
parse
public void parse(File xmlFile)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
parse
public void parse(InputStream xmlInput)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
parse
public void parse(Reader xmlReader)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
parse
public void parse(URL xmlUrl)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
Copyright © 2009-2011 SonarSource. All Rights Reserved.