public static class XMLStreamEventsRecorder.Async extends XMLStreamEventsAsync implements XMLStreamEventsRecorder
XMLStreamEventsAsync.Next, XMLStreamEventsAsync.ParsingTaskXMLStreamEvents.Attribute, XMLStreamEvents.ElementContext, XMLStreamEvents.Event, XMLStreamEvents.StarterXMLStreamEventsRecorder.Async, XMLStreamEventsRecorder.Sync| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<XMLStreamEvents.Event> |
record |
protected boolean |
recording |
protected Iterator<XMLStreamEvents.Event> |
replaying |
protected XMLStreamEventsAsync |
xmlStream |
event, maxCDataSize, maxTextSize, stream| Constructor and Description |
|---|
Async(XMLStreamEventsAsync stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
XMLStreamEvents.Event |
getFirstRecordedEvent()
Shortcut to know what is the first recorded event.
|
byte |
getPriority()
Return the priority used for tasks.
|
Async<Exception> |
next()
Move forward to the next event.
|
void |
replay()
Start to replay.
|
IAsync<Exception> |
start()
Start reading the XML to provide the first event.
|
void |
startRecording(boolean recordCurrentEvent)
Start to record events.
|
void |
stopRecording()
Stop recording events.
|
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, setMaximumTextSizeprotected XMLStreamEventsAsync xmlStream
protected boolean recording
protected LinkedList<XMLStreamEvents.Event> record
protected Iterator<XMLStreamEvents.Event> replaying
public Async(XMLStreamEventsAsync stream)
public byte getPriority()
XMLStreamEventsAsyncgetPriority in class XMLStreamEventsAsyncpublic XMLStreamEvents.Event getFirstRecordedEvent()
XMLStreamEventsRecordergetFirstRecordedEvent in interface XMLStreamEventsRecorderpublic IAsync<Exception> start()
XMLStreamEventsAsyncstart in class XMLStreamEventsAsyncpublic Async<Exception> next()
XMLStreamEventsAsyncnext in class XMLStreamEventsAsyncpublic void startRecording(boolean recordCurrentEvent)
XMLStreamEventsRecorderstartRecording in interface XMLStreamEventsRecorderrecordCurrentEvent - true to save the current event, false to start saving events for the next one.public void stopRecording()
XMLStreamEventsRecorderstopRecording in interface XMLStreamEventsRecorderpublic void replay()
XMLStreamEventsRecorderreplay in interface XMLStreamEventsRecorderCopyright © 2019. All rights reserved.