|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.xml.stax.StAXUtils
public final class StAXUtils
Various tools related to StAX API.
| Method Summary | |
|---|---|
static XMLEventReader |
getXMLEventReader(Source source)
Extract or create an instance of XMLEventReader from the provided Source. |
static XMLStreamReader |
getXMLStreamReader(Source source)
Extract or create an instance of XMLStreamReader from the provided Source. |
static XMLStreamWriter |
getXMLStreamWriter(Result result)
Extract or create an instance of XMLStreamWriter from the provided Result. |
static int |
skipElement(XMLStreamReader xmlReader)
Go to the end of the current element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static XMLStreamReader getXMLStreamReader(Source source)
throws XMLStreamException
XMLStreamReader from the provided Source.
source - the source
XMLStreamReader
XMLStreamException - when failing to extract xml stream reader
public static XMLEventReader getXMLEventReader(Source source)
throws XMLStreamException
XMLEventReader from the provided Source.
source - the source
XMLEventReader
XMLStreamException - when failing to extract xml event reader
public static XMLStreamWriter getXMLStreamWriter(Result result)
throws XMLStreamException
XMLStreamWriter from the provided Result.
result - the result
XMLStreamWriter
XMLStreamException - when failing to extract xml stream writer
public static int skipElement(XMLStreamReader xmlReader)
throws XMLStreamException
xmlReader - the XML stream reader
XMLStreamException - if there is an error processing the underlying XML source
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||