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 XMLStreamException
- Throws:
XMLStreamException
parse
public void parse(InputStream xmlInput)
throws XMLStreamException
- Throws:
XMLStreamException
parse
public void parse(Reader xmlReader)
throws XMLStreamException
- Throws:
XMLStreamException
parse
public void parse(URL xmlUrl)
throws XMLStreamException
- Throws:
XMLStreamException
Copyright © 2009–2014 SonarSource. All rights reserved.