public abstract class XMLStreamEventsSync extends XMLStreamEvents
XMLStreamEvents.Attribute, XMLStreamEvents.ElementContext, XMLStreamEvents.Event, XMLStreamEvents.Starterevent, maxCDataSize, maxTextSize, stream| Constructor and Description |
|---|
XMLStreamEventsSync() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeElement()
Go the the END_ELEMENT event corresponding to the current START_ELEMENT (must be called with a current event to START_ELEMENT).
|
boolean |
goInto(XMLStreamEvents.ElementContext rootContext,
String... innerElements)
Go successively into the given elements.
|
abstract void |
next()
Move forward to the next event.
|
boolean |
nextInnerElement(XMLStreamEvents.ElementContext parent)
Go to the next inner element.
|
boolean |
nextInnerElement(XMLStreamEvents.ElementContext parent,
String childName)
Go to the next inner element having the given name.
|
boolean |
nextStartElement()
Shortcut to move forward to the next START_ELEMENT, return false if no START_ELEMENT event was found.
|
Map<String,String> |
readInnerElementsText(XMLStreamEvents.ElementContext parent)
Read all inner elements with their text, and return a mapping with the element's name as key and inner text as value.
|
UnprotectedStringBuffer |
readInnerText()
Read inner text and close element.
|
boolean |
searchElement(String elementName)
Move forward until an element with the given name is found (whatever its depth).
|
abstract void |
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 void start()
throws XMLException,
IOException
XMLExceptionIOExceptionpublic abstract void next()
throws XMLException,
IOException
XMLExceptionIOExceptionpublic boolean nextStartElement()
throws XMLException,
IOException
XMLExceptionIOExceptionpublic boolean nextInnerElement(XMLStreamEvents.ElementContext parent) throws XMLException, IOException
XMLExceptionIOExceptionpublic boolean nextInnerElement(XMLStreamEvents.ElementContext parent, String childName) throws XMLException, IOException
XMLExceptionIOExceptionpublic UnprotectedStringBuffer readInnerText() throws XMLException, IOException
XMLExceptionIOExceptionpublic void closeElement()
throws XMLException,
IOException
XMLExceptionIOExceptionpublic boolean searchElement(String elementName) throws XMLException, IOException
XMLExceptionIOExceptionpublic boolean goInto(XMLStreamEvents.ElementContext rootContext, String... innerElements) throws IOException, XMLException
IOExceptionXMLExceptionpublic Map<String,String> readInnerElementsText(XMLStreamEvents.ElementContext parent) throws IOException, XMLException
IOExceptionXMLExceptionCopyright © 2019. All rights reserved.