Instantiate this parser to parse a fast infoset document in accordance with the StAX API.
More than one fast infoset document may be decoded from the
java..
| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| protected byte[] | |
| protected int | |
| protected int | |
| protected int | |
| protected String | |
| protected AttributesHolder | _attributes
List of attributes |
| protected String | |
| protected char[] | _characters
Characters associated with event. |
| protected int | |
| protected boolean | |
| protected int | |
| protected int | _currentNamespaceAIIsStart
Namespaces associated with START_ELEMENT or END_ELEMENT |
| protected int | _eventType
Current event |
| protected int | |
| protected boolean | |
| protected StAXManager | |
| protected int[] | |
| protected int | |
| protected String[] | |
| protected String[] | |
| protected int[] | |
| protected int[] | |
| protected StAXDocumentParser. | |
| protected String | |
| protected String | _piTarget
State for processing instruction |
| protected QualifiedName[] | _qNameStack
Stack of qualified names and namespaces |
| protected QualifiedName | _qualifiedName
Qualified name associated with START_ELEMENT or END_ELEMENT. |
| protected int | |
| private byte[] | |
| private int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final String | |
| public final int | |
| public final String | |
| public final String | |
| public final char[] | accessTextCharacters()
Implements org. Returns a cloned char[] representation of the internal char[] buffer. |
| public final int | |
| public final int | |
| private void | |
| private void | |
| protected final void | |
| public void | close()
Implements javax. Frees any resources associated with this Reader. |
| protected void | |
| protected void | convertBase64AlorithmDataToCharacters(StringBuffer buffer)
Deprecated
for removal since 2.1.1. Use
convertBase64AlorithmDataToCharacters(StringBuilder) instead.
|
| protected final void | |
| public final int | getAttributeCount()
Implements javax. Returns the count of attributes on this START_ELEMENT, this method is only valid on a START_ELEMENT or ATTRIBUTE. |
| public final String | getAttributeLocalName(int index)
Implements javax. Returns the localName of the attribute at the provided index |
| public final QName | getAttributeName(int index)
Implements javax. Returns the qname of the attribute at the provided index |
| public final String | getAttributeNamespace(int index)
Implements javax. Returns the namespace of the attribute at the provided index |
| public final String | |
| public final String | getAttributePrefix(int index)
Implements javax. Returns the prefix of this attribute at the provided index |
| public final AttributesHolder | |
| public final String | getAttributeType(int index)
Implements javax. Returns the XML type of the attribute at the provided index |
| public final String | getAttributeValue(String namespaceURI, String localName)
Implements javax. Returns the normalized attribute value of the attribute with the namespace and localName If the namespaceURI is null the namespace is not checked for equality |
| public final String | getAttributeValue(int index)
Implements javax. Returns the value of the attribute at the index |
| public final String | getCharacterEncodingScheme()
Implements javax. Returns the character encoding declared on the xml declaration Returns null if none was declared |
| public final String | getElementText()
Implements javax. Reads the content of a text-only element. |
| public final String | |
| public final String | getEncoding()
Implements javax. Return input encoding if known or null if unknown. |
| public final int | getEventType()
Implements javax. Returns an integer code that indicates the type of the event the cursor is pointing to. |
| pack-priv static final String | |
| public final String | getLocalName()
Implements javax. Returns the (local) name of the current event. |
| public final Location | getLocation()
Implements javax. Return the current location of the processor. |
| public final QName | getName()
Implements javax. Returns a QName for the current START_ELEMENT or END_ELEMENT event |
| public final NamespaceContext | getNamespaceContext()
Implements javax. Returns a read only namespace context for the current position. |
| public final int | getNamespaceCount()
Implements javax. Returns the count of namespaces declared on this START_ELEMENT or END_ELEMENT, this method is only valid on a START_ELEMENT, END_ELEMENT or NAMESPACE. |
| public final String | |
| public final String | getNamespacePrefix(int index)
Implements javax. Returns the prefix for the namespace declared at the index. |
| public final String | getNamespaceURI(String prefix)
Implements javax. Return the uri for the given prefix. |
| public final String | getNamespaceURI(int index)
Implements javax. Returns the uri for the namespace declared at the index. |
| public final String | getNamespaceURI()
Implements javax. If the current event is a START_ELEMENT or END_ELEMENT this method returns the URI of the prefix or the default namespace. |
| public final String | |
| public final String | getPIData()
Implements javax. Get the data section of a processing instruction |
| public final String | getPITarget()
Implements javax. Get the target of a processing instruction |
| public final String | getPrefix()
Implements javax. Returns the prefix of the current event or null if the event does not have a prefix |
| public final Iterator | |
| public Object | getProperty(String name)
Implements javax. Get the value of a feature/property from the underlying implementation |
| public final String | getText()
Implements javax. Returns the current value of the parse event as a string, this returns the string value of a CHARACTERS event, returns the value of a COMMENT, the replacement value for an ENTITY_REFERENCE, the string value of a CDATA section, the string value for a SPACE event, or the String value of the internal subset of the DTD. |
| public final byte[] | |
| public final int | |
| public final byte[] | |
| public final int | |
| public final int | |
| public final int | |
| public final String | |
| public final char[] | getTextCharacters()
Implements javax. Returns an array which contains the characters from this event. |
| public final int | getTextCharacters(int sourceStart, char[] target, int targetStart, int length)
Implements javax. Gets the text associated with a CHARACTERS, SPACE or CDATA event. |
| public final int | getTextLength()
Implements javax. Returns the length of the sequence of characters for this Text event within the text character array. |
| public final int | getTextStart()
Implements javax. Returns the offset into the text character array where the first character (of this text event) is stored. |
| public final String | |
| public final String | getVersion()
Implements javax. Get the xml version declared on the xml declaration Returns null if none was declared |
| public final boolean | hasName()
Implements javax. returns a boolean indicating whether the current event has a name (is a START_ELEMENT or END_ELEMENT). |
| public final boolean | hasNext()
Implements javax. Returns true if there are more parsing events and false if there are no more events. |
| public final boolean | hasText()
Implements javax. Return a boolean indicating whether the current event has text. |
| public final boolean | |
| public final boolean | isAttributeSpecified(int index)
Implements javax. Returns a boolean which indicates if this attribute was created by default |
| public boolean | |
| public final boolean | isCharacters()
Implements javax. Returns true if the cursor points to a character data event |
| public final boolean | isEndElement()
Implements javax. Returns true if the cursor points to an end tag (otherwise false) |
| public final boolean | isStandalone()
Implements javax. Get the standalone declaration from the xml declaration |
| public final boolean | isStartElement()
Implements javax. Returns true if the cursor points to a start tag (otherwise false) |
| public final boolean | Returns: true if the cursor points to all whitespace, false otherwiseImplements javax. Returns true if the cursor points to a character data event that consists of all whitespace Application calling this method needs to cache the value and avoid calling this method again for the same event. |
| public int | next()
Implements javax. Get next parsing event - a processor may return all contiguous character data in a single chunk, or it may split it into several chunks. |
| public final int | Returns: the event type of the element readImplements javax. Skips any white space (isWhiteSpace() returns true), COMMENT, or PROCESSING_INSTRUCTION, until a START_ELEMENT or END_ELEMENT is reached. |
| public final int | nextTag(boolean currentTagRead)
if the current tag has already read, such as in the case EventReader's peek() has been called, the current cursor should not move before the loop |
| public void | onBeforeOctetBufferOverwrite()
Implements com. Callback method that will be called before the (@link Decoder) octet buffer content is going to be changed. |
| public final int | peekNext()
Implements org. Peek at the next event. |
| private void | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected final QualifiedName | |
| protected final QualifiedName | |
| protected final void | |
| protected final QualifiedName | |
| protected final void | |
| protected final void | |
| private void | |
| private void | |
| public final void | require(int
the event type type, String the uri of the event, may be null namespaceURI, String the localName of the event, may be null localName)Implements javax. Test if the current event is of the given type and if the namespace and name match the current namespace and name of the current event. |
| public void | reset()
Overrides com. Reset the decoder for reuse decoding another XML infoset. |
| protected void | |
| protected final void | |
| public void | setInputStream(InputStream s)
Overrides com. Set the InputStream to decode the fast infoset document. |
| public final void | |
| public final boolean | standaloneSet()
Implements javax. Checks if standalone was set in the document |