public final class StAXUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static XMLStreamReader getXMLStreamReader(Source source) throws XMLStreamException
XMLStreamReader from the provided Source.source - the sourceXMLStreamReaderXMLStreamException - when failing to extract xml stream readerpublic static XMLEventReader getXMLEventReader(Source source) throws XMLStreamException
XMLEventReader from the provided Source.source - the sourceXMLEventReaderXMLStreamException - when failing to extract xml event readerpublic static XMLStreamWriter getXMLStreamWriter(Result result) throws XMLStreamException
XMLStreamWriter from the provided Result.result - the resultXMLStreamWriterXMLStreamException - when failing to extract xml stream writerpublic static int skipElement(XMLStreamReader xmlReader) throws XMLStreamException
xmlReader - the XML stream readerXMLStreamException - if there is an error processing the underlying XML sourceCopyright © 2004–2015 XWiki. All rights reserved.