XMLStreamReader2,
the extended stream reader that is part of Stax2.
| Modifier and Type | Field and Description |
|---|---|
| protected ValueDecoderFactory | _decoderFactory
Factory used for constructing decoders we need for typed access |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected TypedXMLStreamException | |
| protected ValueDecoderFactory | |
| public void | closeCompletely()
Implements org. javax.,
except that this method also does close the underlying input
source if it has not yet been closed.
|
| public int | findAttributeIndex(String nsURI, String localName)
Implements org. |
| public void | getAttributeAs(int index, TypedValueDecoder tvd)
Implements org. |
| public abstract int | getAttributeAsArray(int index, TypedArrayDecoder tad)
Redeclares org. |
| public byte[] | getAttributeAsBinary(int
The attribute's index as returned by index)getAttributeIndex(String, String).Implements org. |
| public abstract byte[] | |
| public boolean | getAttributeAsBoolean(int
The attribute's index as returned by index)getAttributeIndex(String, String)Implements org. Read an attribute value as a boolean. |
| public BigDecimal | getAttributeAsDecimal(int index)
Implements org. |
| public double | getAttributeAsDouble(int index)
Implements org. |
| public double[] | |
| public float | getAttributeAsFloat(int index)
Implements org. |
| public float[] | |
| public int | getAttributeAsInt(int
The attribute's index as returned by index)getAttributeIndex(String, String)Implements org. Read an attribute value as a boolean. |
| public int[] | getAttributeAsIntArray(int
The attribute's index as returned by index)getAttributeIndex(String, String).Implements org. Read an attribute content as an int array. |
| public BigInteger | getAttributeAsInteger(int index)
Implements org. |
| public long | getAttributeAsLong(int
The attribute's index as returned by index)getAttributeIndex(String, String)Implements org. Read an attribute value as a boolean. |
| public long[] | getAttributeAsLongArray(int index)
Implements org. |
| public QName | getAttributeAsQName(int index)
Implements org. |
| public abstract int | getAttributeIndex(String
The attribute's namespace URI. Values of
null and "" are considered the same, i.e. "no namespace"
(or "empty" namespace) namespaceURI, String The attribute's local name. localName)Redeclares org. localName and URI is namespaceURI
or -1 if no such attribute exists.
|
| public AttributeInfo | getAttributeInfo()
Implements org. |
| public abstract XMLStreamLocation2 | getCurrentLocation()
Redeclares org. |
| public abstract int | Returns: Number of open elements in the stack; 0 when parser is in prolog/epilog, 1 inside root element and so on.Redeclares org. |
| public DTDInfo | getDTDInfo()
Implements org. |
| public String | Returns: Internal subset portion of the DOCTYPE declaration, if any; empty String if noneImplements org. |
| public String | |
| public String | |
| public String | |
| public void | getElementAs(TypedValueDecoder tvd)
Implements org. |
| public byte[] | getElementAsBinary()
Implements org. readElementAsBinary, in cases where neither performance nor
memory usage is a big concern.
|
| public abstract byte[] | getElementAsBinary(Base64Variant
Base64 variant content is in; needed to decode
alternative variants ("modified base64") v)Redeclares org. readElementAsBinary, in cases where neither performance nor
memory usage is a big concern.
|
| public boolean | getElementAsBoolean()
Implements org. Read an element content as a boolean. |
| public BigDecimal | |
| public double | getElementAsDouble()
Implements org. Read an element content as a 64-bit floating point value. |
| public float | getElementAsFloat()
Implements org. Read an element content as a 32-bit floating point value. |
| public int | getElementAsInt()
Implements org. Read an element content as a 32-bit integer. |
| public BigInteger | |
| public long | getElementAsLong()
Implements org. Read an element content as a 64-bit integer. |
| public QName | |
| public long | getEndingByteOffset()
Implements org. |
| public long | getEndingCharOffset()
Implements org. |
| public abstract XMLStreamLocation2 | getEndLocation()
Redeclares org. |
| public Object | getFeature(String
Name of the feature of which value to get name)Implements org.
Deprecated
Method that can be used to get per-reader values; both generic
ones (names for which are defined as constants in this class),
and implementation dependant ones.
|
| public int | getIdAttributeIndex()
Implements org. |
| public final LocationInfo | getLocationInfo()
Implements org. |
| public abstract NamespaceContext | getNonTransientNamespaceContext()
Redeclares org. javax.,
but one that is
not transient.
|
| public int | getNotationAttributeIndex()
Implements org. |
| public String | getPrefixedName()
Implements org. |
| public Object | |
| public DTDValidationSchema | getProcessedDTDSchema()
Implements org. getProcessedDTD, but type-safe.
|
| public long | getStartingByteOffset()
Implements org. |
| public long | getStartingCharOffset()
Implements org. |
| public abstract XMLStreamLocation2 | getStartLocation()
Redeclares org. |
| public int | getText(Writer
Writer to use for writing textual contents w, boolean If true, reader has to preserve contents
so that further calls to preserveContents)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.Implements org. getText(), except
that it just uses provided Writer to write all textual content,
and that it works for wider range of event types.
|
| public abstract boolean | isEmptyElement()
Redeclares org. |
| public boolean | isPropertySupported(String name)
Implements org. javax., used
to determine whether a property is supported by the Reader
instance.
|
| public abstract int | readElementAsArray(TypedArrayDecoder dec)
Redeclares org. |
| public int | readElementAsBinary(byte[] resultBuffer, int offset, int maxLength)
Implements org. |
| public abstract int | |
| public int | readElementAsDoubleArray(double[] value, int from, int length)
Implements org. |
| public int | readElementAsFloatArray(float[] value, int from, int length)
Implements org. |
| public int | readElementAsIntArray(int[]
The array in which to copy the ints. value, int The index in the array from which copying starts. from, int The maximun number of ints to copy. Minimum value
is 1; others an length)IllegalArgumentException is thrownImplements org. |
| public int | readElementAsLongArray(long[] value, int from, int length)
Implements org. |
| public void | setFeature(String
Name of the feature to set name, Object Value to set feature to. value)Implements org.
Deprecated
Method that can be used to set per-reader features such as configuration
settings; both generic
ones (names for which are defined as constants in this class),
and implementation dependant ones.
|
| public boolean | setProperty(String
Name of the property to set name, Object Value to set property to. value)Implements org. org.
instance.
|
| public abstract ValidationProblemHandler | setValidationProblemHandler(ValidationProblemHandler
Handler to install, if non null; if null, indicates that
the default (implementation-specific) handling should be used h)Redeclares org. |
| public void | skipElement()
Implements org. |
| public XMLValidator | stopValidatingAgainst(XMLValidationSchema schema)
Implements org. validateAgainst
was called earlier.
|
| public XMLValidator | stopValidatingAgainst(XMLValidator validator)
Implements org. |
| protected void | |
| protected void | |
| public XMLValidator | validateAgainst(XMLValidationSchema schema)
Implements org. XMLValidator instance from the
given schema (unless a validator for that schema has already been
added),
initialize it if necessary, and make validatable object (reader,
writer)
call appropriate validation methods from this point on until the
end of the document (that is, it's not scoped with sub-trees), or until
validator is removed by an explicit call to
stopValidatingAgainst.
|