public interface XMLStreamReaderExt extends XMLStreamReader
| Modifier and Type | Field and Description |
|---|---|
static int |
WS_COLLAPSE |
static int |
WS_PRESERVE |
static int |
WS_REPLACE |
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Modifier and Type | Method and Description |
|---|---|
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. |
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.
|
long |
getAttributeLongValue(int index)
Returns the value as a long.
|
long |
getAttributeLongValue(String uri,
String local)
Returns the value as a long.
|
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. |
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. |
Date |
getDateValue()
Returns the value as a
Date. |
double |
getDoubleValue()
Returns the value as a double.
|
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.
|
long |
getLongValue()
Returns the value as a long.
|
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. |
void |
setDefaultValue(String defaultValue)
Sets the default value for the next getXXXValue() call.
|
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, require, standaloneSetstatic final int WS_PRESERVE
static final int WS_REPLACE
static final int WS_COLLAPSE
String getStringValue() throws XMLStreamException
String.XMLStreamExceptionString getStringValue(int wsStyle) throws XMLStreamException
String, with wsStyle applied.XMLStreamExceptionboolean getBooleanValue()
throws XMLStreamException
XMLStreamExceptionbyte getByteValue()
throws XMLStreamException
XMLStreamExceptionshort getShortValue()
throws XMLStreamException
XMLStreamExceptionint getIntValue()
throws XMLStreamException
XMLStreamExceptionlong getLongValue()
throws XMLStreamException
XMLStreamExceptionBigInteger getBigIntegerValue() throws XMLStreamException
BigInteger.XMLStreamExceptionBigDecimal getBigDecimalValue() throws XMLStreamException
BigDecimal.XMLStreamExceptionfloat getFloatValue()
throws XMLStreamException
XMLStreamExceptiondouble getDoubleValue()
throws XMLStreamException
XMLStreamExceptionInputStream getHexBinaryValue() throws XMLStreamException
XMLStreamExceptionInputStream getBase64Value() throws XMLStreamException
XMLStreamExceptionXmlCalendar getCalendarValue() throws XMLStreamException
Calendar.XMLStreamExceptionDate getDateValue() throws XMLStreamException
Date.XMLStreamExceptionGDate getGDateValue() throws XMLStreamException
GDate.XMLStreamExceptionGDuration getGDurationValue() throws XMLStreamException
GDuration.XMLStreamExceptionQName getQNameValue() throws XMLStreamException
QName.XMLStreamExceptionString getAttributeStringValue(int index) throws XMLStreamException
String.XMLStreamExceptionString getAttributeStringValue(int index, int wsStyle) throws XMLStreamException
String, with wsStyle applied.XMLStreamExceptionboolean getAttributeBooleanValue(int index)
throws XMLStreamException
XMLStreamExceptionbyte getAttributeByteValue(int index)
throws XMLStreamException
XMLStreamExceptionshort getAttributeShortValue(int index)
throws XMLStreamException
XMLStreamExceptionint getAttributeIntValue(int index)
throws XMLStreamException
XMLStreamExceptionlong getAttributeLongValue(int index)
throws XMLStreamException
XMLStreamExceptionBigInteger getAttributeBigIntegerValue(int index) throws XMLStreamException
BigInteger.XMLStreamExceptionBigDecimal getAttributeBigDecimalValue(int index) throws XMLStreamException
BigDecimal.XMLStreamExceptionfloat getAttributeFloatValue(int index)
throws XMLStreamException
XMLStreamExceptiondouble getAttributeDoubleValue(int index)
throws XMLStreamException
XMLStreamExceptionInputStream getAttributeHexBinaryValue(int index) throws XMLStreamException
XMLStreamExceptionInputStream getAttributeBase64Value(int index) throws XMLStreamException
XMLStreamExceptionXmlCalendar getAttributeCalendarValue(int index) throws XMLStreamException
Calendar.XMLStreamExceptionDate getAttributeDateValue(int index) throws XMLStreamException
Date.XMLStreamExceptionGDate getAttributeGDateValue(int index) throws XMLStreamException
GDate.XMLStreamExceptionGDuration getAttributeGDurationValue(int index) throws XMLStreamException
GDuration.XMLStreamExceptionQName getAttributeQNameValue(int index) throws XMLStreamException
QName.XMLStreamExceptionString getAttributeStringValue(String uri, String local) throws XMLStreamException
String.XMLStreamExceptionString getAttributeStringValue(String uri, String local, int wsStyle) throws XMLStreamException
String, with wsStyle applied.XMLStreamExceptionboolean getAttributeBooleanValue(String uri, String local) throws XMLStreamException
XMLStreamExceptionbyte getAttributeByteValue(String uri, String local) throws XMLStreamException
XMLStreamExceptionshort getAttributeShortValue(String uri, String local) throws XMLStreamException
XMLStreamExceptionint getAttributeIntValue(String uri, String local) throws XMLStreamException
XMLStreamExceptionlong getAttributeLongValue(String uri, String local) throws XMLStreamException
XMLStreamExceptionBigInteger getAttributeBigIntegerValue(String uri, String local) throws XMLStreamException
BigInteger.XMLStreamExceptionBigDecimal getAttributeBigDecimalValue(String uri, String local) throws XMLStreamException
BigDecimal.XMLStreamExceptionfloat getAttributeFloatValue(String uri, String local) throws XMLStreamException
XMLStreamExceptiondouble getAttributeDoubleValue(String uri, String local) throws XMLStreamException
XMLStreamExceptionInputStream getAttributeHexBinaryValue(String uri, String local) throws XMLStreamException
XMLStreamExceptionInputStream getAttributeBase64Value(String uri, String local) throws XMLStreamException
XMLStreamExceptionXmlCalendar getAttributeCalendarValue(String uri, String local) throws XMLStreamException
Calendar.XMLStreamExceptionDate getAttributeDateValue(String uri, String local) throws XMLStreamException
Date.XMLStreamExceptionGDate getAttributeGDateValue(String uri, String local) throws XMLStreamException
GDate.XMLStreamExceptionGDuration getAttributeGDurationValue(String uri, String local) throws XMLStreamException
GDuration.XMLStreamExceptionQName getAttributeQNameValue(String uri, String local) throws XMLStreamException
QName.XMLStreamExceptionvoid setDefaultValue(String defaultValue) throws XMLStreamException
<int> </int>
int i = getIntValue(); // returns 7
// from now on the default value will not apply anymore
Note: Works for getAttributeXXXValue(...) too.XMLStreamException