public class XMLStreamReaderExtImpl extends Object implements XMLStreamReaderExt
WS_COLLAPSE, WS_PRESERVE, WS_REPLACEATTRIBUTE, 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 |
|---|
XMLStreamReaderExtImpl(XMLStreamReader xmlStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getAttributeBase64Value(int index)
Returns the decoded base64 value as anInputStream.
|
InputStream |
getAttributeBase64Value(String uri,
String local)
Returns the decoded base64 value as anInputStream.
|
BigDecimal |
getAttributeBigDecimalValue(int index)
Returns the value as a
BigDecimal. |
BigDecimal |
getAttributeBigDecimalValue(String uri,
String local)
Returns the value as a
BigDecimal. |
BigInteger |
getAttributeBigIntegerValue(int index)
Returns the value as a
BigInteger. |
BigInteger |
getAttributeBigIntegerValue(String uri,
String local)
Returns the value as a
BigInteger. |
boolean |
getAttributeBooleanValue(int index)
Returns the value as a boolean.
|
boolean |
getAttributeBooleanValue(String uri,
String local)
Returns the value as a boolean.
|
byte |
getAttributeByteValue(int index)
Returns the value as a byte.
|
byte |
getAttributeByteValue(String uri,
String local)
Returns the value as a byte.
|
XmlCalendar |
getAttributeCalendarValue(int index)
Returns the value as an XmlCalendar which extends
Calendar. |
XmlCalendar |
getAttributeCalendarValue(String uri,
String local)
Returns the value as an XmlCalendar which extends
Calendar. |
int |
getAttributeCount() |
Date |
getAttributeDateValue(int index)
Returns the value as a
Date. |
Date |
getAttributeDateValue(String uri,
String local)
Returns the value as a
Date. |
double |
getAttributeDoubleValue(int index)
Returns the value as a double.
|
double |
getAttributeDoubleValue(String uri,
String local)
Returns the value as a double.
|
float |
getAttributeFloatValue(int index)
Returns the value as a float.
|
float |
getAttributeFloatValue(String uri,
String local)
Returns the value as a float.
|
GDate |
getAttributeGDateValue(int index)
Returns the value as a
GDate. |
GDate |
getAttributeGDateValue(String uri,
String local)
Returns the value as a
GDate. |
GDuration |
getAttributeGDurationValue(int index)
Returns the value as a
GDuration. |
GDuration |
getAttributeGDurationValue(String uri,
String local)
Returns the value as a
GDuration. |
InputStream |
getAttributeHexBinaryValue(int index)
Returns the decoded hexbinary value as an InputStream.
|
InputStream |
getAttributeHexBinaryValue(String uri,
String local)
Returns the decoded hexbinary value as an InputStream.
|
int |
getAttributeIntValue(int index)
Returns the value as an int.
|
int |
getAttributeIntValue(String uri,
String local)
Returns the value as an int.
|
String |
getAttributeLocalName(int i) |
long |
getAttributeLongValue(int index)
Returns the value as a long.
|
long |
getAttributeLongValue(String uri,
String local)
Returns the value as a long.
|
QName |
getAttributeName(int i) |
String |
getAttributeNamespace(int i) |
String |
getAttributePrefix(int i) |
QName |
getAttributeQNameValue(int index)
Returns the value as a
QName. |
QName |
getAttributeQNameValue(String uri,
String local)
Returns the value as a
QName. |
short |
getAttributeShortValue(int index)
Returns the value as a short.
|
short |
getAttributeShortValue(String uri,
String local)
Returns the value as a short.
|
String |
getAttributeStringValue(int index)
Returns the value as a
String. |
String |
getAttributeStringValue(int index,
int wsStyle)
Returns the value as a
String, with wsStyle applied. |
String |
getAttributeStringValue(String uri,
String local)
Returns the value as a
String. |
String |
getAttributeStringValue(String uri,
String local,
int wsStyle)
Returns the value as a
String, with wsStyle applied. |
String |
getAttributeType(int i) |
String |
getAttributeValue(int i) |
String |
getAttributeValue(String s,
String s1) |
InputStream |
getBase64Value()
Returns the decoded base64 value as anInputStream.
|
BigDecimal |
getBigDecimalValue()
Returns the value as a
BigDecimal. |
BigInteger |
getBigIntegerValue()
Returns the value as a
BigInteger. |
boolean |
getBooleanValue()
Returns the value as a boolean.
|
byte |
getByteValue()
Returns the value as a byte.
|
XmlCalendar |
getCalendarValue()
Returns the value as an XmlCalendar which extends
Calendar. |
String |
getCharacterEncodingScheme() |
Date |
getDateValue()
Returns the value as a
Date. |
double |
getDoubleValue()
Returns the value as a double.
|
String |
getElementText() |
String |
getEncoding() |
int |
getEventType() |
float |
getFloatValue()
Returns the value as a float.
|
GDate |
getGDateValue()
Returns the value as a
GDate. |
GDuration |
getGDurationValue()
Returns the value as a
GDuration. |
InputStream |
getHexBinaryValue()
Returns the decoded hexbinary value as an InputStream.
|
int |
getIntValue()
Returns the value as an int.
|
String |
getLocalName() |
Location |
getLocation() |
long |
getLongValue()
Returns the value as a long.
|
QName |
getName() |
NamespaceContext |
getNamespaceContext() |
int |
getNamespaceCount() |
String |
getNamespacePrefix(int i) |
String |
getNamespaceURI() |
String |
getNamespaceURI(int i) |
String |
getNamespaceURI(String s) |
String |
getPIData() |
String |
getPITarget() |
String |
getPrefix() |
Object |
getProperty(String s) |
QName |
getQNameValue()
Returns the value as a
QName. |
short |
getShortValue()
Returns the value as a short.
|
String |
getStringValue()
Returns the value as a
String. |
String |
getStringValue(int wsStyle)
Returns the value as a
String, with wsStyle applied. |
String |
getText() |
char[] |
getTextCharacters() |
int |
getTextCharacters(int i,
char[] chars,
int i1,
int i2) |
int |
getTextLength() |
int |
getTextStart() |
XMLStreamReader |
getUnderlyingXmlStream() |
String |
getVersion() |
boolean |
hasName() |
boolean |
hasNext() |
boolean |
hasText() |
boolean |
isAttributeSpecified(int i) |
boolean |
isCharacters() |
boolean |
isEndElement() |
boolean |
isStandalone() |
boolean |
isStartElement() |
boolean |
isWhiteSpace() |
int |
next() |
int |
nextTag() |
void |
require(int i,
String s,
String s1) |
void |
setDefaultValue(String defaultValue)
Sets the default value for the next getXXXValue() call.
|
boolean |
standaloneSet() |
public XMLStreamReaderExtImpl(XMLStreamReader xmlStream)
public XMLStreamReader getUnderlyingXmlStream()
public String getStringValue() throws XMLStreamException
XMLStreamReaderExtString.getStringValue in interface XMLStreamReaderExtXMLStreamExceptionpublic String getStringValue(int wsStyle) throws XMLStreamException
XMLStreamReaderExtString, with wsStyle applied.getStringValue in interface XMLStreamReaderExtXMLStreamExceptionpublic boolean getBooleanValue()
throws XMLStreamException,
InvalidLexicalValueException
XMLStreamReaderExtgetBooleanValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic byte getByteValue()
throws XMLStreamException,
InvalidLexicalValueException
XMLStreamReaderExtgetByteValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic short getShortValue()
throws XMLStreamException,
InvalidLexicalValueException
XMLStreamReaderExtgetShortValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic int getIntValue()
throws XMLStreamException,
InvalidLexicalValueException
XMLStreamReaderExtgetIntValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic long getLongValue()
throws XMLStreamException,
InvalidLexicalValueException
XMLStreamReaderExtgetLongValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic BigInteger getBigIntegerValue() throws XMLStreamException, InvalidLexicalValueException
XMLStreamReaderExtBigInteger.getBigIntegerValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic BigDecimal getBigDecimalValue() throws XMLStreamException, InvalidLexicalValueException
XMLStreamReaderExtBigDecimal.getBigDecimalValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic float getFloatValue()
throws XMLStreamException,
InvalidLexicalValueException
XMLStreamReaderExtgetFloatValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic double getDoubleValue()
throws XMLStreamException,
InvalidLexicalValueException
XMLStreamReaderExtgetDoubleValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic InputStream getHexBinaryValue() throws XMLStreamException, InvalidLexicalValueException
XMLStreamReaderExtgetHexBinaryValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic InputStream getBase64Value() throws XMLStreamException, InvalidLexicalValueException
XMLStreamReaderExtgetBase64Value in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic XmlCalendar getCalendarValue() throws XMLStreamException, InvalidLexicalValueException
XMLStreamReaderExtCalendar.getCalendarValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic Date getDateValue() throws XMLStreamException, InvalidLexicalValueException
XMLStreamReaderExtDate.getDateValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic GDate getGDateValue() throws XMLStreamException, InvalidLexicalValueException
XMLStreamReaderExtGDate.getGDateValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic GDuration getGDurationValue() throws XMLStreamException, InvalidLexicalValueException
XMLStreamReaderExtGDuration.getGDurationValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic QName getQNameValue() throws XMLStreamException, InvalidLexicalValueException
XMLStreamReaderExtQName.getQNameValue in interface XMLStreamReaderExtXMLStreamExceptionInvalidLexicalValueExceptionpublic String getAttributeStringValue(int index) throws XMLStreamException
XMLStreamReaderExtString.getAttributeStringValue in interface XMLStreamReaderExtXMLStreamExceptionpublic String getAttributeStringValue(int index, int wsStyle) throws XMLStreamException
XMLStreamReaderExtString, with wsStyle applied.getAttributeStringValue in interface XMLStreamReaderExtXMLStreamExceptionpublic boolean getAttributeBooleanValue(int index)
throws XMLStreamException
XMLStreamReaderExtgetAttributeBooleanValue in interface XMLStreamReaderExtXMLStreamExceptionpublic byte getAttributeByteValue(int index)
throws XMLStreamException
XMLStreamReaderExtgetAttributeByteValue in interface XMLStreamReaderExtXMLStreamExceptionpublic short getAttributeShortValue(int index)
throws XMLStreamException
XMLStreamReaderExtgetAttributeShortValue in interface XMLStreamReaderExtXMLStreamExceptionpublic int getAttributeIntValue(int index)
throws XMLStreamException
XMLStreamReaderExtgetAttributeIntValue in interface XMLStreamReaderExtXMLStreamExceptionpublic long getAttributeLongValue(int index)
throws XMLStreamException
XMLStreamReaderExtgetAttributeLongValue in interface XMLStreamReaderExtXMLStreamExceptionpublic BigInteger getAttributeBigIntegerValue(int index) throws XMLStreamException
XMLStreamReaderExtBigInteger.getAttributeBigIntegerValue in interface XMLStreamReaderExtXMLStreamExceptionpublic BigDecimal getAttributeBigDecimalValue(int index) throws XMLStreamException
XMLStreamReaderExtBigDecimal.getAttributeBigDecimalValue in interface XMLStreamReaderExtXMLStreamExceptionpublic float getAttributeFloatValue(int index)
throws XMLStreamException
XMLStreamReaderExtgetAttributeFloatValue in interface XMLStreamReaderExtXMLStreamExceptionpublic double getAttributeDoubleValue(int index)
throws XMLStreamException
XMLStreamReaderExtgetAttributeDoubleValue in interface XMLStreamReaderExtXMLStreamExceptionpublic InputStream getAttributeHexBinaryValue(int index) throws XMLStreamException
XMLStreamReaderExtgetAttributeHexBinaryValue in interface XMLStreamReaderExtXMLStreamExceptionpublic InputStream getAttributeBase64Value(int index) throws XMLStreamException
XMLStreamReaderExtgetAttributeBase64Value in interface XMLStreamReaderExtXMLStreamExceptionpublic XmlCalendar getAttributeCalendarValue(int index) throws XMLStreamException
XMLStreamReaderExtCalendar.getAttributeCalendarValue in interface XMLStreamReaderExtXMLStreamExceptionpublic Date getAttributeDateValue(int index) throws XMLStreamException
XMLStreamReaderExtDate.getAttributeDateValue in interface XMLStreamReaderExtXMLStreamExceptionpublic GDate getAttributeGDateValue(int index) throws XMLStreamException
XMLStreamReaderExtGDate.getAttributeGDateValue in interface XMLStreamReaderExtXMLStreamExceptionpublic GDuration getAttributeGDurationValue(int index) throws XMLStreamException
XMLStreamReaderExtGDuration.getAttributeGDurationValue in interface XMLStreamReaderExtXMLStreamExceptionpublic QName getAttributeQNameValue(int index) throws XMLStreamException
XMLStreamReaderExtQName.getAttributeQNameValue in interface XMLStreamReaderExtXMLStreamExceptionpublic String getAttributeStringValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtString.getAttributeStringValue in interface XMLStreamReaderExtXMLStreamExceptionpublic String getAttributeStringValue(String uri, String local, int wsStyle) throws XMLStreamException
XMLStreamReaderExtString, with wsStyle applied.getAttributeStringValue in interface XMLStreamReaderExtXMLStreamExceptionpublic boolean getAttributeBooleanValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtgetAttributeBooleanValue in interface XMLStreamReaderExtXMLStreamExceptionpublic byte getAttributeByteValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtgetAttributeByteValue in interface XMLStreamReaderExtXMLStreamExceptionpublic short getAttributeShortValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtgetAttributeShortValue in interface XMLStreamReaderExtXMLStreamExceptionpublic int getAttributeIntValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtgetAttributeIntValue in interface XMLStreamReaderExtXMLStreamExceptionpublic long getAttributeLongValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtgetAttributeLongValue in interface XMLStreamReaderExtXMLStreamExceptionpublic BigInteger getAttributeBigIntegerValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtBigInteger.getAttributeBigIntegerValue in interface XMLStreamReaderExtXMLStreamExceptionpublic BigDecimal getAttributeBigDecimalValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtBigDecimal.getAttributeBigDecimalValue in interface XMLStreamReaderExtXMLStreamExceptionpublic float getAttributeFloatValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtgetAttributeFloatValue in interface XMLStreamReaderExtXMLStreamExceptionpublic double getAttributeDoubleValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtgetAttributeDoubleValue in interface XMLStreamReaderExtXMLStreamExceptionpublic InputStream getAttributeHexBinaryValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtgetAttributeHexBinaryValue in interface XMLStreamReaderExtXMLStreamExceptionpublic InputStream getAttributeBase64Value(String uri, String local) throws XMLStreamException
XMLStreamReaderExtgetAttributeBase64Value in interface XMLStreamReaderExtXMLStreamExceptionpublic XmlCalendar getAttributeCalendarValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtCalendar.getAttributeCalendarValue in interface XMLStreamReaderExtXMLStreamExceptionpublic Date getAttributeDateValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtDate.getAttributeDateValue in interface XMLStreamReaderExtXMLStreamExceptionpublic GDate getAttributeGDateValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtGDate.getAttributeGDateValue in interface XMLStreamReaderExtXMLStreamExceptionpublic GDuration getAttributeGDurationValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtGDuration.getAttributeGDurationValue in interface XMLStreamReaderExtXMLStreamExceptionpublic QName getAttributeQNameValue(String uri, String local) throws XMLStreamException
XMLStreamReaderExtQName.getAttributeQNameValue in interface XMLStreamReaderExtXMLStreamExceptionpublic void setDefaultValue(String defaultValue) throws XMLStreamException
XMLStreamReaderExt<int> </int>
int i = getIntValue(); // returns 7
// from now on the default value will not apply anymore
Note: Works for getAttributeXXXValue(...) too.setDefaultValue in interface XMLStreamReaderExtXMLStreamExceptionpublic Object getProperty(String s) throws IllegalArgumentException
getProperty in interface XMLStreamReaderIllegalArgumentExceptionpublic int next()
throws XMLStreamException
next in interface XMLStreamReaderXMLStreamExceptionpublic void require(int i,
String s,
String s1)
throws XMLStreamException
require in interface XMLStreamReaderXMLStreamExceptionpublic String getElementText() throws XMLStreamException
getElementText in interface XMLStreamReaderXMLStreamExceptionpublic int nextTag()
throws XMLStreamException
nextTag in interface XMLStreamReaderXMLStreamExceptionpublic boolean hasNext()
throws XMLStreamException
hasNext in interface XMLStreamReaderXMLStreamExceptionpublic void close()
throws XMLStreamException
close in interface XMLStreamReaderXMLStreamExceptionpublic String getNamespaceURI(String s)
getNamespaceURI in interface XMLStreamReaderpublic boolean isStartElement()
isStartElement in interface XMLStreamReaderpublic boolean isEndElement()
isEndElement in interface XMLStreamReaderpublic boolean isCharacters()
isCharacters in interface XMLStreamReaderpublic boolean isWhiteSpace()
isWhiteSpace in interface XMLStreamReaderpublic String getAttributeValue(String s, String s1)
getAttributeValue in interface XMLStreamReaderpublic int getAttributeCount()
getAttributeCount in interface XMLStreamReaderpublic QName getAttributeName(int i)
getAttributeName in interface XMLStreamReaderpublic String getAttributeNamespace(int i)
getAttributeNamespace in interface XMLStreamReaderpublic String getAttributeLocalName(int i)
getAttributeLocalName in interface XMLStreamReaderpublic String getAttributePrefix(int i)
getAttributePrefix in interface XMLStreamReaderpublic String getAttributeType(int i)
getAttributeType in interface XMLStreamReaderpublic String getAttributeValue(int i)
getAttributeValue in interface XMLStreamReaderpublic boolean isAttributeSpecified(int i)
isAttributeSpecified in interface XMLStreamReaderpublic int getNamespaceCount()
getNamespaceCount in interface XMLStreamReaderpublic String getNamespacePrefix(int i)
getNamespacePrefix in interface XMLStreamReaderpublic String getNamespaceURI(int i)
getNamespaceURI in interface XMLStreamReaderpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface XMLStreamReaderpublic int getEventType()
getEventType in interface XMLStreamReaderpublic String getText()
getText in interface XMLStreamReaderpublic char[] getTextCharacters()
getTextCharacters in interface XMLStreamReaderpublic int getTextCharacters(int i,
char[] chars,
int i1,
int i2)
throws XMLStreamException
getTextCharacters in interface XMLStreamReaderXMLStreamExceptionpublic int getTextStart()
getTextStart in interface XMLStreamReaderpublic int getTextLength()
getTextLength in interface XMLStreamReaderpublic String getEncoding()
getEncoding in interface XMLStreamReaderpublic boolean hasText()
hasText in interface XMLStreamReaderpublic Location getLocation()
getLocation in interface XMLStreamReaderpublic QName getName()
getName in interface XMLStreamReaderpublic String getLocalName()
getLocalName in interface XMLStreamReaderpublic boolean hasName()
hasName in interface XMLStreamReaderpublic String getNamespaceURI()
getNamespaceURI in interface XMLStreamReaderpublic String getPrefix()
getPrefix in interface XMLStreamReaderpublic String getVersion()
getVersion in interface XMLStreamReaderpublic boolean isStandalone()
isStandalone in interface XMLStreamReaderpublic boolean standaloneSet()
standaloneSet in interface XMLStreamReaderpublic String getCharacterEncodingScheme()
getCharacterEncodingScheme in interface XMLStreamReaderpublic String getPITarget()
getPITarget in interface XMLStreamReaderpublic String getPIData()
getPIData in interface XMLStreamReader