public static class XMLStreamEventsRecorder.Sync extends XMLStreamEventsSync implements XMLStreamEventsRecorder
XMLStreamEvents.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 XMLStreamEventsSync |
xmlStream |
event, maxCDataSize, maxTextSize, stream| Constructor and Description |
|---|
Sync(XMLStreamEventsSync stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
XMLStreamEvents.Event |
getFirstRecordedEvent()
Shortcut to know what is the first recorded event.
|
void |
next()
Move forward to the next event.
|
void |
replay()
Start to replay.
|
void |
start()
Start reading the XML to provide the first event.
|
void |
startRecording(boolean recordCurrentEvent)
Start to record events.
|
void |
stopRecording()
Stop recording events.
|
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 XMLStreamEventsSync xmlStream
protected boolean recording
protected LinkedList<XMLStreamEvents.Event> record
protected Iterator<XMLStreamEvents.Event> replaying
public Sync(XMLStreamEventsSync stream)
public XMLStreamEvents.Event getFirstRecordedEvent()
XMLStreamEventsRecordergetFirstRecordedEvent in interface XMLStreamEventsRecorderpublic void start()
throws XMLException,
IOException
XMLStreamEventsSyncstart in class XMLStreamEventsSyncXMLExceptionIOExceptionpublic void next()
throws XMLException,
IOException
XMLStreamEventsSyncnext in class XMLStreamEventsSyncXMLExceptionIOExceptionpublic 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.