public interface XmlReader
| Modifier and Type | Method and Description |
|---|---|
<T extends Externalizable> |
forEach(T object,
AttributeConsumer<T> consumer) |
<T extends XmlReaderContext> |
getContext() |
int |
getDepth()
Returns an integer depth that indicates depth in the xml hierarchy.
|
int |
getEventType()
Returns an integer code that indicates the type of the event the cursor is pointing to.
|
Namespaces |
getNamespaces() |
ProcessingInstruction |
getPIData()
Returns the current Processing Instruction of a PROCESSING_INSTRUCTION event.
|
ProcessingInstruction |
getProlog()
Returns the current Processing Instruction of the prolog.
|
QName |
getQName()
Returns the qualidied name of the current event.
|
CharArray |
getText()
Returns the current value of the parse event as a string, this returns the string value of a CHARACTERS event.
|
int |
next()
Get next parsing event - a processor may return all contiguous character data in a single chunk, or it may split it into several chunks.
|
void |
nextStartOrEndElement()
Go to the next START_ELEMENT or END_ELEMENT.
|
void |
preserveSpace() |
<T extends XmlReaderContext> |
setContext(T context) |
int next()
Get next parsing event - a processor may return all contiguous character data in a single chunk, or it may split it into several chunks.
By default entity references must be expanded and reported transparently to the application. An exception will be thrown if an entity reference cannot be expanded. If element content is empty (i.e. content is "") then no CHARACTERS event will be reported.void nextStartOrEndElement()
Go to the next START_ELEMENT or END_ELEMENT.
int getEventType()
Returns an integer code that indicates the type of the event the cursor is pointing to.
int getDepth()
Returns an integer depth that indicates depth in the xml hierarchy.
QName getQName()
Returns the qualidied name of the current event.
CharArray getText()
Returns the current value of the parse event as a string, this returns the string value of a CHARACTERS event.
ProcessingInstruction getPIData()
Returns the current Processing Instruction of a PROCESSING_INSTRUCTION event.
ProcessingInstruction getProlog()
Returns the current Processing Instruction of the prolog.
Namespaces getNamespaces()
<T extends Externalizable> void forEach(T object, AttributeConsumer<T> consumer)
void preserveSpace()
<T extends XmlReaderContext> void setContext(T context)
<T extends XmlReaderContext> T getContext()
Copyright © 2017. All rights reserved.