|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.aalto.stax.StreamReaderImpl
public class StreamReaderImpl
Basic backend-independent XMLStreamReader implementation.
While the read implements Stax API, most of real work is delegated
to input (and thereby, encoding) specific backend implementations.
| Field Summary | |
|---|---|
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 |
| Fields inherited from interface org.codehaus.stax2.XMLStreamReader2 |
|---|
FEATURE_DTD_OVERRIDE |
| Fields inherited from interface javax.xml.stream.XMLStreamConstants |
|---|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
| Constructor Summary | |
|---|---|
StreamReaderImpl(XmlScanner scanner)
|
|
| Method Summary | |
|---|---|
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()
|
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. |
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)
|
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)
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public StreamReaderImpl(XmlScanner scanner)
| Method Detail |
|---|
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 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 XMLStreamReader
public final String getAttributeValue(String nsURI,
String localName)
getAttributeValue in interface XMLStreamReader
public 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 XMLStreamReader
public 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 XMLStreamReader
public final void require(int type,
String nsUri,
String localName)
throws XMLStreamException
require in interface XMLStreamReaderXMLStreamException
public final int next()
throws XMLStreamException
next in interface XMLStreamReaderXMLStreamException
public final int nextTag()
throws XMLStreamException
nextTag in interface XMLStreamReaderXMLStreamException
public 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.LocationInfo
public final boolean getElementAsBoolean()
throws XMLStreamException
getElementAsBoolean in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int getElementAsInt()
throws XMLStreamException
getElementAsInt in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final long getElementAsLong()
throws XMLStreamException
getElementAsLong in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final float getElementAsFloat()
throws XMLStreamException
getElementAsFloat in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final double getElementAsDouble()
throws XMLStreamException
getElementAsDouble in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final BigInteger getElementAsInteger()
throws XMLStreamException
getElementAsInteger in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final BigDecimal getElementAsDecimal()
throws XMLStreamException
getElementAsDecimal in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final QName getElementAsQName()
throws XMLStreamException
getElementAsQName in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final byte[] getElementAsBinary()
throws XMLStreamException
getElementAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final void getElementAs(org.codehaus.stax2.typed.TypedValueDecoder tvd)
throws XMLStreamException
getElementAs in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final byte[] getElementAsBinary(org.codehaus.stax2.typed.Base64Variant v)
throws XMLStreamException
getElementAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int readElementAsIntArray(int[] value,
int from,
int length)
throws XMLStreamException
readElementAsIntArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int readElementAsLongArray(long[] value,
int from,
int length)
throws XMLStreamException
readElementAsLongArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int readElementAsFloatArray(float[] value,
int from,
int length)
throws XMLStreamException
readElementAsFloatArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int readElementAsDoubleArray(double[] value,
int from,
int length)
throws XMLStreamException
readElementAsDoubleArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int readElementAsArray(org.codehaus.stax2.typed.TypedArrayDecoder dec)
throws XMLStreamException
readElementAsArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int readElementAsBinary(byte[] resultBuffer,
int offset,
int maxLength)
throws XMLStreamException
readElementAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int readElementAsBinary(byte[] resultBuffer,
int offset,
int maxLength,
org.codehaus.stax2.typed.Base64Variant v)
throws XMLStreamException
readElementAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int getAttributeIndex(String namespaceURI,
String localName)
getAttributeIndex in interface org.codehaus.stax2.typed.TypedXMLStreamReader
public final boolean getAttributeAsBoolean(int index)
throws XMLStreamException
getAttributeAsBoolean in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int getAttributeAsInt(int index)
throws XMLStreamException
getAttributeAsInt in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final long getAttributeAsLong(int index)
throws XMLStreamException
getAttributeAsLong in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final float getAttributeAsFloat(int index)
throws XMLStreamException
getAttributeAsFloat in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final double getAttributeAsDouble(int index)
throws XMLStreamException
getAttributeAsDouble in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final BigInteger getAttributeAsInteger(int index)
throws XMLStreamException
getAttributeAsInteger in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final BigDecimal getAttributeAsDecimal(int index)
throws XMLStreamException
getAttributeAsDecimal in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final QName getAttributeAsQName(int index)
throws XMLStreamException
getAttributeAsQName in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final void getAttributeAs(int index,
org.codehaus.stax2.typed.TypedValueDecoder tvd)
throws XMLStreamException
getAttributeAs in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int[] getAttributeAsIntArray(int index)
throws XMLStreamException
getAttributeAsIntArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final long[] getAttributeAsLongArray(int index)
throws XMLStreamException
getAttributeAsLongArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final float[] getAttributeAsFloatArray(int index)
throws XMLStreamException
getAttributeAsFloatArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final double[] getAttributeAsDoubleArray(int index)
throws XMLStreamException
getAttributeAsDoubleArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final int getAttributeAsArray(int index,
org.codehaus.stax2.typed.TypedArrayDecoder tad)
throws XMLStreamException
getAttributeAsArray in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final byte[] getAttributeAsBinary(int index)
throws XMLStreamException
getAttributeAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
public final byte[] getAttributeAsBinary(int index,
org.codehaus.stax2.typed.Base64Variant v)
throws XMLStreamException
getAttributeAsBinary in interface org.codehaus.stax2.typed.TypedXMLStreamReaderXMLStreamException
protected QName verifyQName(QName n)
throws org.codehaus.stax2.typed.TypedXMLStreamException
org.codehaus.stax2.typed.TypedXMLStreamExceptionpublic final Object getFeature(String name)
getFeature in interface org.codehaus.stax2.XMLStreamReader2
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.XMLStreamReader2
public 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.XMLStreamReader2XMLStreamException
public final org.codehaus.stax2.AttributeInfo getAttributeInfo()
throws XMLStreamException
getAttributeInfo in interface org.codehaus.stax2.XMLStreamReader2XMLStreamException
public 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.XMLStreamReader2
public 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.XMLStreamReader2
public 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.XMLStreamReader2
public 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.LocationInfo
public final long getEndingByteOffset()
throws XMLStreamException
getEndingByteOffset in interface org.codehaus.stax2.LocationInfoXMLStreamException
public final long getEndingCharOffset()
throws XMLStreamException
getEndingCharOffset in interface org.codehaus.stax2.LocationInfoXMLStreamExceptionpublic final org.codehaus.stax2.XMLStreamLocation2 getStartLocation()
getStartLocation in interface org.codehaus.stax2.LocationInfo
public 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.LocationInfo
public 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.AttributeInfo
public final org.codehaus.stax2.validation.XMLValidator validateAgainst(org.codehaus.stax2.validation.XMLValidationSchema schema)
throws XMLStreamException
validateAgainst in interface org.codehaus.stax2.validation.ValidatableXMLStreamException
public final org.codehaus.stax2.validation.XMLValidator stopValidatingAgainst(org.codehaus.stax2.validation.XMLValidationSchema schema)
throws XMLStreamException
stopValidatingAgainst in interface org.codehaus.stax2.validation.ValidatableXMLStreamException
public 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 Location getLastCharLocation()
protected int handlePrologEoi(boolean isProlog)
throws XMLStreamException
XMLStreamException
protected void handleTreeEoi()
throws XMLStreamException
XMLStreamException
protected void throwWfe(String msg)
throws XMLStreamException
XMLStreamException
protected void throwFromIOE(IOException ioe)
throws XMLStreamException
XMLStreamException
protected 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()
public final String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||