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 |
stream |
event| 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.
|
SynchronizationPoint<Exception> |
next()
Move forward to the next event.
|
void |
replay()
Start to replay.
|
ISynchronizationPoint<Exception> |
start()
Start reading the XML to provide the first event.
|
void |
startRecording(boolean recordCurrentEvent)
Start to record events.
|
void |
stopRecording()
Stop recording events.
|
closeElement, closeElement, goInto, nextInnerElement, nextInnerElement, nextStartElement, readInnerElementsText, readInnerText, searchElementgetAttributeByFullName, getAttributeByLocalName, getAttributeValueByFullName, getAttributeValueByLocalName, getAttributeValueWithNamespaceURI, getAttributeValueWithPrefix, getAttributeWithNamespaceURI, getAttributeWithPrefix, getNamespaceURI, isSpaceChar, onStartElement, readNamespaces, removeAttributeByFullName, removeAttributeByLocalName, removeAttributeWithNamespaceURI, removeAttributeWithPrefix, resetprotected XMLStreamEventsAsync stream
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 ISynchronizationPoint<Exception> start()
XMLStreamEventsAsyncstart in class XMLStreamEventsAsyncpublic SynchronizationPoint<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 © 2018. All rights reserved.