public class XmlReader extends Object implements XMLStreamConstants, AutoCloseable
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
XmlReader(org.springframework.core.io.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getDepth() |
String |
getElementText() |
double |
getElementTextDouble(double defaultValue) |
int |
getElementTextInt(int defaultValue) |
int |
getEventType() |
String |
getLocalPart() |
QName |
getName() |
XMLStreamReader |
getParser() |
int |
next() |
boolean |
skipToStartElement() |
boolean |
skipToStartElement(int depth,
QName elementName) |
boolean |
skipToStartElements(int depth,
Collection<QName> elementNames) |
boolean |
skipToStartElements(int depth,
QName... elementNames) |
String |
toString() |
public void close()
close in interface AutoCloseablepublic int getDepth()
public String getElementText()
public double getElementTextDouble(double defaultValue)
public int getElementTextInt(int defaultValue)
public int getEventType()
public String getLocalPart()
public QName getName()
public XMLStreamReader getParser()
public int next()
public boolean skipToStartElement()
public boolean skipToStartElement(int depth,
QName elementName)
public boolean skipToStartElements(int depth,
Collection<QName> elementNames)
public boolean skipToStartElements(int depth,
QName... elementNames)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.