public class XMLStreamReaderValidator extends XMLStreamReaderWrapper
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 |
|---|
XMLStreamReaderValidator(XMLStreamReader delegate,
boolean throwExceptions) |
| Modifier and Type | Method and Description |
|---|---|
String |
getElementText() |
protected void |
logParserState()
Dump the current event of the delegate.
|
int |
next() |
int |
nextTag() |
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getParent, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, require, standaloneSetpublic XMLStreamReaderValidator(XMLStreamReader delegate, boolean throwExceptions)
delegate - XMLStreamReader to validatethrowExceptions - (true if exceptions should be thrown when errors are encountered)public int next()
throws XMLStreamException
next in interface XMLStreamReadernext in class XMLStreamReaderWrapperXMLStreamExceptionpublic String getElementText() throws XMLStreamException
getElementText in interface XMLStreamReadergetElementText in class XMLStreamReaderWrapperXMLStreamExceptionpublic int nextTag()
throws XMLStreamException
nextTag in interface XMLStreamReadernextTag in class XMLStreamReaderWrapperXMLStreamExceptionprotected void logParserState()
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.