public abstract class XMLStreamEventsAsync extends XMLStreamEvents
| Modifier and Type | Class and Description |
|---|---|
protected class |
XMLStreamEventsAsync.Next
Shortcut to create a task going to the next event, and call onNext if an event is successfully found.
|
protected class |
XMLStreamEventsAsync.ParsingTask
Shortcut class to create a task.
|
XMLStreamEvents.Attribute, XMLStreamEvents.ElementContext, XMLStreamEvents.Event, XMLStreamEvents.Starterevent, maxCDataSize, maxTextSize, stream| Constructor and Description |
|---|
XMLStreamEventsAsync() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
check(IAsync<Exception> op,
IAsync<Exception> result) |
IAsync<Exception> |
closeElement()
Go the the END_ELEMENT event corresponding to the current START_ELEMENT (must be called with a current event to START_ELEMENT).
|
IAsync<Exception> |
closeElement(XMLStreamEvents.ElementContext ctx)
Move forward until the closing tag of the given element is found.
|
abstract byte |
getPriority()
Return the priority used for tasks.
|
AsyncSupplier<Boolean,Exception> |
goInto(XMLStreamEvents.ElementContext rootContext,
String... innerElements)
Go successively into the given elements.
|
abstract Async<Exception> |
next()
Move forward to the next event.
|
AsyncSupplier<Boolean,Exception> |
nextInnerElement(XMLStreamEvents.ElementContext parent)
Go to the next inner element.
|
AsyncSupplier<Boolean,Exception> |
nextInnerElement(XMLStreamEvents.ElementContext parent,
String childName)
Go to the next inner element having the given name.
|
IAsync<Exception> |
nextStartElement()
Shortcut to move forward to the next START_ELEMENT.
|
AsyncSupplier<Map<String,String>,Exception> |
readInnerElementsText()
Read all inner elements with their text, and return a mapping with the element's name as key and inner text as value.
|
AsyncSupplier<UnprotectedStringBuffer,Exception> |
readInnerText()
Read inner text and close element.
|
IAsync<Exception> |
searchElement(String elementName)
Move forward until an element with the given name is found (whatever its depth).
|
abstract IAsync<Exception> |
start()
Start reading the XML to provide the first event.
|
getAttributeByFullName, getAttributeByLocalName, getAttributeValueByFullName, getAttributeValueByLocalName, getAttributeValueWithNamespaceURI, getAttributeValueWithPrefix, getAttributeWithNamespaceURI, getAttributeWithPrefix, getCharacterStream, getMaximumCDataSize, getMaximumTextSize, getNamespaceURI, isNameChar, isNameStartChar, isSpaceChar, onStartElement, readNamespaces, removeAttributeByFullName, removeAttributeByLocalName, removeAttributeWithNamespaceURI, removeAttributeWithPrefix, reset, setMaximumCDataSize, setMaximumTextSizepublic abstract IAsync<Exception> start()
public abstract byte getPriority()
public abstract Async<Exception> next()
public IAsync<Exception> nextStartElement()
public AsyncSupplier<Boolean,Exception> nextInnerElement(XMLStreamEvents.ElementContext parent)
public AsyncSupplier<Boolean,Exception> nextInnerElement(XMLStreamEvents.ElementContext parent, String childName)
public AsyncSupplier<UnprotectedStringBuffer,Exception> readInnerText()
public IAsync<Exception> closeElement()
public IAsync<Exception> closeElement(XMLStreamEvents.ElementContext ctx)
public IAsync<Exception> searchElement(String elementName)
public AsyncSupplier<Boolean,Exception> goInto(XMLStreamEvents.ElementContext rootContext, String... innerElements)
public AsyncSupplier<Map<String,String>,Exception> readInnerElementsText()
Copyright © 2019. All rights reserved.