public class StreamReaderImpl extends Object implements org.codehaus.stax2.XMLStreamReader2, org.codehaus.stax2.AttributeInfo, org.codehaus.stax2.DTDInfo, org.codehaus.stax2.LocationInfo
XMLStreamReader implementation.
While the read implements Stax API, most of real work is delegated
to input (and thereby, encoding) specific backend implementations.| Modifier and Type | Field and Description |
|---|---|
protected int |
_attrCount
If the current event is
START_ELEMENT, number
of attributes the start element has. |
protected org.codehaus.stax2.ri.typed.CharArrayBase64Decoder |
_base64Decoder
Lazily-constructed decoder object for decoding base64 encoded
element binary content.
|
protected boolean |
_cfgCoalesceText |
protected boolean |
_cfgReportTextAsChars |
protected PName |
_currName
Prefixed name associated with the current event, if any.
|
protected int |
_currToken |
protected org.codehaus.stax2.ri.typed.ValueDecoderFactory |
_decoderFactory
Factory used for constructing decoders we need for typed access
|
protected PName |
_dtdRootName
Prefixed root-name DOCTYPE declaration gave us, if any (note: also
serves as a marker to know if we have seen DOCTYPE yet)
|
protected int |
_parseState
Main parsing/tokenization state (STATE_xxx)
|
protected XmlScanner |
_scanner
Underlying XML scanner
|
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 |
|---|
StreamReaderImpl(XmlScanner scanner) |
| Modifier and Type | Method and Description |
|---|---|
protected org.codehaus.stax2.ri.typed.CharArrayBase64Decoder |
_base64Decoder() |
protected void |
_closeScanner(boolean forceStreamClose)
Method called to close scanner, by asking it to release resource
it has, and potentially also close the underlying stream.
|
protected XMLStreamException |
_constructUnexpectedInTyped(int nextToken) |
protected org.codehaus.stax2.ri.typed.ValueDecoderFactory |
_decoderFactory() |
protected void |
_reportNonTextEvent(int type)
Helper method called when
getElementText() (et al) method encounters
a token type it should not, during text coalescing |
void |
close()
Note: as per StAX 1.0 specs, this method does NOT close the underlying
input reader.
|
void |
closeCompletely() |
static StreamReaderImpl |
construct(InputBootstrapper bs) |
int |
findAttributeIndex(String nsURI,
String localName) |
void |
getAttributeAs(int index,
org.codehaus.stax2.typed.TypedValueDecoder tvd) |
int |
getAttributeAsArray(int index,
org.codehaus.stax2.typed.TypedArrayDecoder tad)
Method that allows reading contents of an attribute as an array
of whitespace-separate tokens, decoded using specified decoder.
|
byte[] |
getAttributeAsBinary(int index) |
byte[] |
getAttributeAsBinary(int index,
org.codehaus.stax2.typed.Base64Variant v) |
boolean |
getAttributeAsBoolean(int index) |
BigDecimal |
getAttributeAsDecimal(int index) |
double |
getAttributeAsDouble(int index) |
double[] |
getAttributeAsDoubleArray(int index) |
float |
getAttributeAsFloat(int index) |
float[] |
getAttributeAsFloatArray(int index) |
int |
getAttributeAsInt(int index) |
int[] |
getAttributeAsIntArray(int index) |
BigInteger |
getAttributeAsInteger(int index) |
long |
getAttributeAsLong(int index) |
long[] |
getAttributeAsLongArray(int index) |
QName |
getAttributeAsQName(int index) |
int |
getAttributeCount() |
int |
getAttributeIndex(String namespaceURI,
String localName) |
org.codehaus.stax2.AttributeInfo |
getAttributeInfo() |
String |
getAttributeLocalName(int index) |
QName |
getAttributeName(int index) |
String |
getAttributeNamespace(int index) |
String |
getAttributePrefix(int index) |
String |
getAttributeType(int index) |
String |
getAttributeValue(int index) |
String |
getAttributeValue(String nsURI,
String localName) |
String |
getCharacterEncodingScheme()
As per Stax (1.0) specs, needs to return whatever xml declaration
claimed encoding is, if any; or null if no xml declaration found.
|
ReaderConfig |
getConfig() |
org.codehaus.stax2.XMLStreamLocation2 |
getCurrentLocation() |
int |
getDepth() |
org.codehaus.stax2.DTDInfo |
getDTDInfo()
Since this class implements
DTDInfo, method can just
return this. |
String |
getDTDInternalSubset() |
String |
getDTDPublicId() |
String |
getDTDRootName() |
String |
getDTDSystemId() |
void |
getElementAs(org.codehaus.stax2.typed.TypedValueDecoder tvd) |
byte[] |
getElementAsBinary() |
byte[] |
getElementAsBinary(org.codehaus.stax2.typed.Base64Variant v) |
boolean |
getElementAsBoolean() |
BigDecimal |
getElementAsDecimal() |
double |
getElementAsDouble() |
float |
getElementAsFloat() |
int |
getElementAsInt() |
BigInteger |
getElementAsInteger() |
long |
getElementAsLong() |
QName |
getElementAsQName() |
String |
getElementText()
From StAX specs:
Reads the content of a text-only element, an exception is thrown if
this is not a text-only element.
|
String |
getEncoding()
As per Stax (1.0) specs, needs to return whatever parser determined
the encoding was, if it was able to figure it out.
|
long |
getEndingByteOffset() |
long |
getEndingCharOffset() |
org.codehaus.stax2.XMLStreamLocation2 |
getEndLocation() |
int |
getEventType()
Returns type of the last event returned; or START_DOCUMENT before
any events has been explicitly returned.
|
Object |
getFeature(String name)
Deprecated.
|
int |
getIdAttributeIndex() |
protected Location |
getLastCharLocation() |
String |
getLocalName() |
Location |
getLocation() |
org.codehaus.stax2.LocationInfo |
getLocationInfo()
Location information is always accessible, for this reader.
|
QName |
getName() |
NamespaceContext |
getNamespaceContext() |
int |
getNamespaceCount() |
String |
getNamespacePrefix(int index) |
String |
getNamespaceURI() |
String |
getNamespaceURI(int index) |
String |
getNamespaceURI(String prefix) |
NamespaceContext |
getNonTransientNamespaceContext() |
int |
getNotationAttributeIndex() |
String |
getPIData() |
String |
getPITarget() |
String |
getPrefix() |
String |
getPrefixedName() |
Object |
getProcessedDTD()
Note: DTD-handling sub-classes need to override this method.
|
org.codehaus.stax2.validation.DTDValidationSchema |
getProcessedDTDSchema()
Sub-class will override this method
|
Object |
getProperty(String name) |
XmlScanner |
getScanner()
Should not really be public, but needed by SAX code
|
long |
getStartingByteOffset() |
long |
getStartingCharOffset() |
org.codehaus.stax2.XMLStreamLocation2 |
getStartLocation() |
String |
getText() |
int |
getText(Writer w,
boolean preserveContents)
Method similar to
getText(), except
that it just uses provided Writer to write all textual content. |
char[] |
getTextCharacters() |
int |
getTextCharacters(int srcStart,
char[] target,
int targetStart,
int len) |
int |
getTextLength() |
int |
getTextStart() |
String |
getVersion() |
protected int |
handlePrologEoi(boolean isProlog) |
protected void |
handleTreeEoi()
Method called when hitting an end-of-input within tree, after
a valid token
|
boolean |
hasName() |
boolean |
hasNext() |
boolean |
hasText() |
boolean |
isAttributeSpecified(int index) |
boolean |
isCharacters() |
boolean |
isEmptyElement() |
boolean |
isEndElement() |
boolean |
isPropertySupported(String name) |
boolean |
isStandalone() |
boolean |
isStartElement() |
boolean |
isWhiteSpace() |
int |
next() |
int |
nextTag() |
int |
readElementAsArray(org.codehaus.stax2.typed.TypedArrayDecoder dec) |
int |
readElementAsBinary(byte[] resultBuffer,
int offset,
int maxLength) |
int |
readElementAsBinary(byte[] resultBuffer,
int offset,
int maxLength,
org.codehaus.stax2.typed.Base64Variant v) |
int |
readElementAsDoubleArray(double[] value,
int from,
int length) |
int |
readElementAsFloatArray(float[] value,
int from,
int length) |
int |
readElementAsIntArray(int[] value,
int from,
int length) |
int |
readElementAsLongArray(long[] value,
int from,
int length) |
protected void |
reportInvalidAttrIndex(int index) |
void |
require(int type,
String nsUri,
String localName) |
void |
setFeature(String name,
Object value)
Deprecated.
|
boolean |
setProperty(String name,
Object value) |
org.codehaus.stax2.validation.ValidationProblemHandler |
setValidationProblemHandler(org.codehaus.stax2.validation.ValidationProblemHandler h) |
void |
skipElement() |
boolean |
standaloneSet() |
org.codehaus.stax2.validation.XMLValidator |
stopValidatingAgainst(org.codehaus.stax2.validation.XMLValidationSchema schema) |
org.codehaus.stax2.validation.XMLValidator |
stopValidatingAgainst(org.codehaus.stax2.validation.XMLValidator validator) |
protected void |
throwFromIOE(IOException ioe) |
protected void |
throwUnexpectedEOI(String msg) |
protected void |
throwWfe(String msg)
Throws generic parse error with specified message and current parsing
location.
|
String |
toString() |
org.codehaus.stax2.validation.XMLValidator |
validateAgainst(org.codehaus.stax2.validation.XMLValidationSchema schema) |
protected QName |
verifyQName(QName n) |
protected final XmlScanner _scanner
protected final boolean _cfgCoalesceText
protected final boolean _cfgReportTextAsChars
protected int _currToken
protected int _parseState
protected PName _currName
protected int _attrCount
START_ELEMENT, number
of attributes the start element has. Otherwise undefined.
Updated by reader, to make index checks for other attribute
access methods simpler.protected org.codehaus.stax2.ri.typed.ValueDecoderFactory _decoderFactory
protected org.codehaus.stax2.ri.typed.CharArrayBase64Decoder _base64Decoder
protected PName _dtdRootName
public StreamReaderImpl(XmlScanner scanner)
public static StreamReaderImpl construct(InputBootstrapper bs) throws XMLStreamException
XMLStreamExceptionpublic XmlScanner getScanner()
public final String getCharacterEncodingScheme()
Note: method name is rather confusing (compare to getEncoding()).
getCharacterEncodingScheme in interface XMLStreamReaderpublic final String getEncoding()
Reader), it should return null.getEncoding in interface XMLStreamReaderpublic String getVersion()
getVersion in interface XMLStreamReaderpublic final boolean isStandalone()
isStandalone in interface XMLStreamReaderpublic final boolean standaloneSet()
standaloneSet in interface XMLStreamReaderpublic Object getProperty(String name)
getProperty in interface XMLStreamReaderpublic ReaderConfig getConfig()
public final int getAttributeCount()
getAttributeCount in interface XMLStreamReadergetAttributeCount in interface org.codehaus.stax2.AttributeInfopublic final String getAttributeLocalName(int index)
getAttributeLocalName in interface XMLStreamReaderpublic final QName getAttributeName(int index)
getAttributeName in interface XMLStreamReaderpublic final String getAttributeNamespace(int index)
getAttributeNamespace in interface XMLStreamReaderpublic final String getAttributePrefix(int index)
getAttributePrefix in interface XMLStreamReaderpublic final String getAttributeType(int index)
getAttributeType in interface XMLStreamReaderpublic final String getAttributeValue(int index)
getAttributeValue in interface XMLStreamReaderpublic final String getAttributeValue(String nsURI, String localName)
getAttributeValue in interface XMLStreamReaderpublic final String getElementText() throws XMLStreamException
Reads the content of a text-only element, an exception is thrown if this is not a text-only element. Regardless of value of javax.xml.stream.isCoalescing this method always returns coalesced content.
Precondition: the current event is START_ELEMENT.
Postcondition: the current event is the corresponding END_ELEMENT.
getElementText in interface XMLStreamReaderXMLStreamExceptionpublic final int getEventType()
getEventType in interface XMLStreamReaderpublic final String getLocalName()
getLocalName in interface XMLStreamReaderpublic final QName getName()
getName in interface XMLStreamReaderpublic final NamespaceContext getNamespaceContext()
getNamespaceContext in interface XMLStreamReaderpublic final int getNamespaceCount()
getNamespaceCount in interface XMLStreamReaderpublic final String getNamespacePrefix(int index)
getNamespacePrefix in interface XMLStreamReaderpublic final String getNamespaceURI()
getNamespaceURI in interface XMLStreamReaderpublic final String getNamespaceURI(int index)
getNamespaceURI in interface XMLStreamReaderpublic final String getNamespaceURI(String prefix)
getNamespaceURI in interface XMLStreamReaderpublic final String getPIData()
getPIData in interface XMLStreamReaderpublic final String getPITarget()
getPITarget in interface XMLStreamReaderpublic final String getPrefix()
getPrefix in interface XMLStreamReaderpublic final String getText()
getText in interface XMLStreamReaderpublic final char[] getTextCharacters()
getTextCharacters in interface XMLStreamReaderpublic final int getTextCharacters(int srcStart,
char[] target,
int targetStart,
int len)
getTextCharacters in interface XMLStreamReaderpublic final int getTextLength()
getTextLength in interface XMLStreamReaderpublic final int getTextStart()
getTextStart in interface XMLStreamReaderpublic final boolean hasName()
hasName in interface XMLStreamReaderpublic final boolean hasNext()
hasNext in interface XMLStreamReaderpublic final boolean hasText()
hasText in interface XMLStreamReaderpublic final boolean isAttributeSpecified(int index)
isAttributeSpecified in interface XMLStreamReaderpublic final boolean isCharacters()
isCharacters in interface XMLStreamReaderpublic final boolean isEndElement()
isEndElement in interface XMLStreamReaderpublic final boolean isStartElement()
isStartElement in interface XMLStreamReaderpublic final boolean isWhiteSpace()
isWhiteSpace in interface XMLStreamReaderpublic final void require(int type,
String nsUri,
String localName)
throws XMLStreamException
require in interface XMLStreamReaderXMLStreamExceptionpublic final int next()
throws XMLStreamException
next in interface XMLStreamReaderXMLStreamExceptionpublic final int nextTag()
throws XMLStreamException
nextTag in interface XMLStreamReaderXMLStreamExceptionpublic final void close()
throws XMLStreamException
Note: as per StAX 1.0 specs, this method does NOT close the underlying
input reader. (that is, unless the new StAX2 property
org.codehaus.stax2.XMLInputFactory2#P_AUTO_CLOSE_INPUT is
set to true).
close in interface XMLStreamReaderXMLStreamExceptionpublic final Location getLocation()
getLocation in interface XMLStreamReadergetLocation in interface org.codehaus.stax2.LocationInfopublic final boolean getElementAsBoolean()
throws XMLStreamException
getElementAsBoolean in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int getElementAsInt()
throws XMLStreamException
getElementAsInt in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final long getElementAsLong()
throws XMLStreamException
getElementAsLong in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final float getElementAsFloat()
throws XMLStreamException
getElementAsFloat in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final double getElementAsDouble()
throws XMLStreamException
getElementAsDouble in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final BigInteger getElementAsInteger() throws XMLStreamException
getElementAsInteger in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final BigDecimal getElementAsDecimal() throws XMLStreamException
getElementAsDecimal in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final QName getElementAsQName() throws XMLStreamException
getElementAsQName in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final byte[] getElementAsBinary()
throws XMLStreamException
getElementAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final void getElementAs(org.codehaus.stax2.typed.TypedValueDecoder tvd)
throws XMLStreamException
getElementAs in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final byte[] getElementAsBinary(org.codehaus.stax2.typed.Base64Variant v)
throws XMLStreamException
getElementAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int readElementAsIntArray(int[] value,
int from,
int length)
throws XMLStreamException
readElementAsIntArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int readElementAsLongArray(long[] value,
int from,
int length)
throws XMLStreamException
readElementAsLongArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int readElementAsFloatArray(float[] value,
int from,
int length)
throws XMLStreamException
readElementAsFloatArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int readElementAsDoubleArray(double[] value,
int from,
int length)
throws XMLStreamException
readElementAsDoubleArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int readElementAsArray(org.codehaus.stax2.typed.TypedArrayDecoder dec)
throws XMLStreamException
readElementAsArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int readElementAsBinary(byte[] resultBuffer,
int offset,
int maxLength)
throws XMLStreamException
readElementAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int readElementAsBinary(byte[] resultBuffer,
int offset,
int maxLength,
org.codehaus.stax2.typed.Base64Variant v)
throws XMLStreamException
readElementAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int getAttributeIndex(String namespaceURI, String localName)
getAttributeIndex in interface org.codehaus.stax2.typed.TypedXMLStreamReaderpublic final boolean getAttributeAsBoolean(int index)
throws XMLStreamException
getAttributeAsBoolean in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int getAttributeAsInt(int index)
throws XMLStreamException
getAttributeAsInt in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final long getAttributeAsLong(int index)
throws XMLStreamException
getAttributeAsLong in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final float getAttributeAsFloat(int index)
throws XMLStreamException
getAttributeAsFloat in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final double getAttributeAsDouble(int index)
throws XMLStreamException
getAttributeAsDouble in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final BigInteger getAttributeAsInteger(int index) throws XMLStreamException
getAttributeAsInteger in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final BigDecimal getAttributeAsDecimal(int index) throws XMLStreamException
getAttributeAsDecimal in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final QName getAttributeAsQName(int index) throws XMLStreamException
getAttributeAsQName in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final void getAttributeAs(int index,
org.codehaus.stax2.typed.TypedValueDecoder tvd)
throws XMLStreamException
getAttributeAs in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int[] getAttributeAsIntArray(int index)
throws XMLStreamException
getAttributeAsIntArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final long[] getAttributeAsLongArray(int index)
throws XMLStreamException
getAttributeAsLongArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final float[] getAttributeAsFloatArray(int index)
throws XMLStreamException
getAttributeAsFloatArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final double[] getAttributeAsDoubleArray(int index)
throws XMLStreamException
getAttributeAsDoubleArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final int getAttributeAsArray(int index,
org.codehaus.stax2.typed.TypedArrayDecoder tad)
throws XMLStreamException
getAttributeAsArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final byte[] getAttributeAsBinary(int index)
throws XMLStreamException
getAttributeAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionpublic final byte[] getAttributeAsBinary(int index,
org.codehaus.stax2.typed.Base64Variant v)
throws XMLStreamException
getAttributeAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamExceptionprotected QName verifyQName(QName n) throws org.codehaus.stax2.typed.TypedXMLStreamException
org.codehaus.stax2.typed.TypedXMLStreamException@Deprecated public final Object getFeature(String name)
getFeature in interface org.codehaus.stax2.XMLStreamReader2@Deprecated public final void setFeature(String name, Object value)
setFeature in interface org.codehaus.stax2.XMLStreamReader2public final boolean isPropertySupported(String name)
isPropertySupported in interface org.codehaus.stax2.XMLStreamReader2public final boolean setProperty(String name, Object value)
setProperty in interface org.codehaus.stax2.XMLStreamReader2name - Name of the property to setvalue - Value to set property to.public final void skipElement()
throws XMLStreamException
skipElement in interface org.codehaus.stax2.XMLStreamReader2XMLStreamExceptionpublic final org.codehaus.stax2.AttributeInfo getAttributeInfo()
throws XMLStreamException
getAttributeInfo in interface org.codehaus.stax2.XMLStreamReader2XMLStreamExceptionpublic final org.codehaus.stax2.DTDInfo getDTDInfo()
throws XMLStreamException
DTDInfo, method can just
return this.getDTDInfo in interface org.codehaus.stax2.XMLStreamReader2XMLStreamExceptionpublic final org.codehaus.stax2.LocationInfo getLocationInfo()
getLocationInfo in interface org.codehaus.stax2.XMLStreamReader2public final int getText(Writer w, boolean preserveContents) throws XMLStreamException
getText(), except
that it just uses provided Writer to write all textual content.
For further optimization, it may also be allowed to do true
pass-through, thus possibly avoiding one temporary copy of the
data.
TODO: try to optimize to allow completely streaming pass-through: currently will still read all data in memory buffers before outputting
getText in interface org.codehaus.stax2.XMLStreamReader2w - Writer to use for writing textual contentspreserveContents - If true, reader has to preserve contents
so that further calls to getText will return
proper conntets. If false, reader is allowed to skip creation
of such copies: this can improve performance, but it also means
that further calls to getText is not guaranteed to
return meaningful data.XMLStreamExceptionpublic final int getDepth()
getDepth in interface org.codehaus.stax2.XMLStreamReader2public final boolean isEmptyElement()
throws XMLStreamException
isEmptyElement in interface org.codehaus.stax2.XMLStreamReader2XMLStreamExceptionpublic final NamespaceContext getNonTransientNamespaceContext()
getNonTransientNamespaceContext in interface org.codehaus.stax2.XMLStreamReader2public final String getPrefixedName()
getPrefixedName in interface org.codehaus.stax2.XMLStreamReader2public final void closeCompletely()
throws XMLStreamException
closeCompletely in interface org.codehaus.stax2.XMLStreamReader2XMLStreamExceptionpublic final Object getProcessedDTD()
Note: DTD-handling sub-classes need to override this method.
getProcessedDTD in interface org.codehaus.stax2.DTDInfopublic final String getDTDRootName()
getDTDRootName in interface org.codehaus.stax2.DTDInfopublic final String getDTDPublicId()
getDTDPublicId in interface org.codehaus.stax2.DTDInfopublic final String getDTDSystemId()
getDTDSystemId in interface org.codehaus.stax2.DTDInfopublic final String getDTDInternalSubset()
getDTDInternalSubset in interface org.codehaus.stax2.DTDInfopublic final org.codehaus.stax2.validation.DTDValidationSchema getProcessedDTDSchema()
getProcessedDTDSchema in interface org.codehaus.stax2.DTDInfopublic final long getStartingByteOffset()
getStartingByteOffset in interface org.codehaus.stax2.LocationInfopublic final long getStartingCharOffset()
getStartingCharOffset in interface org.codehaus.stax2.LocationInfopublic final long getEndingByteOffset()
throws XMLStreamException
getEndingByteOffset in interface org.codehaus.stax2.LocationInfoXMLStreamExceptionpublic final long getEndingCharOffset()
throws XMLStreamException
getEndingCharOffset in interface org.codehaus.stax2.LocationInfoXMLStreamExceptionpublic final org.codehaus.stax2.XMLStreamLocation2 getStartLocation()
getStartLocation in interface org.codehaus.stax2.LocationInfopublic final org.codehaus.stax2.XMLStreamLocation2 getEndLocation()
throws XMLStreamException
getEndLocation in interface org.codehaus.stax2.LocationInfoXMLStreamExceptionpublic final org.codehaus.stax2.XMLStreamLocation2 getCurrentLocation()
getCurrentLocation in interface org.codehaus.stax2.LocationInfopublic final int findAttributeIndex(String nsURI, String localName)
findAttributeIndex in interface org.codehaus.stax2.AttributeInfopublic final int getIdAttributeIndex()
getIdAttributeIndex in interface org.codehaus.stax2.AttributeInfopublic final int getNotationAttributeIndex()
getNotationAttributeIndex in interface org.codehaus.stax2.AttributeInfopublic final org.codehaus.stax2.validation.XMLValidator validateAgainst(org.codehaus.stax2.validation.XMLValidationSchema schema)
throws XMLStreamException
validateAgainst in interface org.codehaus.stax2.validation.ValidatableXMLStreamExceptionpublic final org.codehaus.stax2.validation.XMLValidator stopValidatingAgainst(org.codehaus.stax2.validation.XMLValidationSchema schema)
throws XMLStreamException
stopValidatingAgainst in interface org.codehaus.stax2.validation.ValidatableXMLStreamExceptionpublic final org.codehaus.stax2.validation.XMLValidator stopValidatingAgainst(org.codehaus.stax2.validation.XMLValidator validator)
throws XMLStreamException
stopValidatingAgainst in interface org.codehaus.stax2.validation.ValidatableXMLStreamExceptionpublic final org.codehaus.stax2.validation.ValidationProblemHandler setValidationProblemHandler(org.codehaus.stax2.validation.ValidationProblemHandler h)
setValidationProblemHandler in interface org.codehaus.stax2.validation.Validatableprotected void _reportNonTextEvent(int type)
throws XMLStreamException
getElementText() (et al) method encounters
a token type it should not, during text coalescingXMLStreamExceptionprotected Location getLastCharLocation()
protected int handlePrologEoi(boolean isProlog)
throws XMLStreamException
XMLStreamExceptionprotected void handleTreeEoi()
throws XMLStreamException
XMLStreamExceptionprotected void throwWfe(String msg) throws XMLStreamException
XMLStreamExceptionprotected void throwFromIOE(IOException ioe) throws XMLStreamException
XMLStreamExceptionprotected void throwUnexpectedEOI(String msg) throws XMLStreamException
XMLStreamExceptionprotected XMLStreamException _constructUnexpectedInTyped(int nextToken)
protected void reportInvalidAttrIndex(int index)
protected void _closeScanner(boolean forceStreamClose)
throws XMLStreamException
XMLStreamExceptionprotected final org.codehaus.stax2.ri.typed.ValueDecoderFactory _decoderFactory()
protected org.codehaus.stax2.ri.typed.CharArrayBase64Decoder _base64Decoder()
Copyright © 2021 FasterXML. All rights reserved.