public class XMLStreamReaderValidator extends XMLStreamReaderWrapper
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
IS_ADV_DEBUG_ENABLED |
private static org.apache.commons.logging.Log |
log |
private java.util.Stack |
stack |
private boolean |
throwExceptions |
| Constructor and Description |
|---|
XMLStreamReaderValidator(javax.xml.stream.XMLStreamReader delegate,
boolean throwExceptions) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getElementText() |
protected void |
logParserState()
Dump the current event of the delegate.
|
int |
next() |
int |
nextTag() |
private void |
reportError(java.lang.String message) |
private void |
trackEvent(int event) |
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, standaloneSetprivate static final org.apache.commons.logging.Log log
private static boolean IS_ADV_DEBUG_ENABLED
private boolean throwExceptions
private java.util.Stack stack
public XMLStreamReaderValidator(javax.xml.stream.XMLStreamReader delegate,
boolean throwExceptions)
delegate - XMLStreamReader to validatethrowExceptions - (true if exceptions should be thrown when errors are encountered)public int next()
throws javax.xml.stream.XMLStreamException
next in interface javax.xml.stream.XMLStreamReadernext in class XMLStreamReaderWrapperjavax.xml.stream.XMLStreamExceptionpublic java.lang.String getElementText()
throws javax.xml.stream.XMLStreamException
getElementText in interface javax.xml.stream.XMLStreamReadergetElementText in class XMLStreamReaderWrapperjavax.xml.stream.XMLStreamExceptionpublic int nextTag()
throws javax.xml.stream.XMLStreamException
nextTag in interface javax.xml.stream.XMLStreamReadernextTag in class XMLStreamReaderWrapperjavax.xml.stream.XMLStreamExceptionprivate void trackEvent(int event)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprivate void reportError(java.lang.String message)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected void logParserState()