public class XMLStreamReaderAsync extends XMLStreamEventsAsync
XMLStreamReader: read-only, forward, event based.
The method next() allows to move forward to the next event (such as start element, end element, comment, text...).
It uses UnprotectedString to avoid allocating many character arrays.
Charset is automatically detected by reading the beginning of the XML (either with auto-detection or with the specified encoding).XMLStreamEventsAsync.Next, XMLStreamEventsAsync.ParsingTaskXMLStreamEvents.Attribute, XMLStreamEvents.ElementContext, XMLStreamEvents.Event, XMLStreamEvents.Starterevent, maxCDataSize, maxTextSize, stream| Constructor and Description |
|---|
XMLStreamReaderAsync(IO.Readable io,
Charset defaultEncoding,
int charactersBuffersSize,
int maxBuffers)
Initialize with the given IO.
|
XMLStreamReaderAsync(IO.Readable io,
int charactersBuffersSize,
int maxBuffers)
Constructor, without charset (automatic detection).
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getPriority()
Return the priority used for tasks.
|
Async<Exception> |
next()
Move forward to the next event.
|
IAsync<Exception> |
start()
Start reading the XML to provide the first event.
|
IAsync<Exception> |
startRootElement()
Shortcut to move forward to the first START_ELEMENT event, skipping the header or comments.
|
check, closeElement, closeElement, goInto, nextInnerElement, nextInnerElement, nextStartElement, readInnerElementsText, readInnerText, searchElementgetAttributeByFullName, getAttributeByLocalName, getAttributeValueByFullName, getAttributeValueByLocalName, getAttributeValueWithNamespaceURI, getAttributeValueWithPrefix, getAttributeWithNamespaceURI, getAttributeWithPrefix, getCharacterStream, getMaximumCDataSize, getMaximumTextSize, getNamespaceURI, isNameChar, isNameStartChar, isSpaceChar, onStartElement, readNamespaces, removeAttributeByFullName, removeAttributeByLocalName, removeAttributeWithNamespaceURI, removeAttributeWithPrefix, reset, setMaximumCDataSize, setMaximumTextSizepublic XMLStreamReaderAsync(IO.Readable io, Charset defaultEncoding, int charactersBuffersSize, int maxBuffers)
PreBufferedReadable is created.
If the charset is null, it will be automatically detected.public XMLStreamReaderAsync(IO.Readable io, int charactersBuffersSize, int maxBuffers)
public IAsync<Exception> start()
XMLStreamEventsAsyncstart in class XMLStreamEventsAsyncpublic Async<Exception> next()
XMLStreamEventsAsyncnext in class XMLStreamEventsAsyncpublic byte getPriority()
XMLStreamEventsAsyncgetPriority in class XMLStreamEventsAsyncCopyright © 2019. All rights reserved.