| java.lang.Object com.sun.xml.fastinfoset.Decoder com.sun.xml.fastinfoset.stax.StAXDocumentParser
Method Summary | |
final public String | accessLocalName() | final public int | accessNamespaceCount() | final public String | accessNamespaceURI() | final public String | accessPrefix() | final public char[] | accessTextCharacters() | final public int | accessTextLength() | final public int | accessTextStart() | final protected void | checkTextState() | public void | close() | protected void | convertBase64AlorithmDataToCharacters(StringBuffer buffer) | final protected void | convertEncodingAlgorithmDataToCharacters() | final public int | getAttributeCount() | final public String | getAttributeLocalName(int index) | final public javax.xml.namespace.QName | getAttributeName(int index) | final public String | getAttributeNameString(int index) | final public String | getAttributeNamespace(int index) | final public String | getAttributePrefix(int index) | final public String | getAttributeType(int index) | final public String | getAttributeValue(String namespaceURI, String localName) | final public String | getAttributeValue(int index) | final public AttributesHolder | getAttributesHolder() | final public String | getCharacterEncodingScheme() | final public String | getElementText() Reads the content of a text-only element. | final public String | getElementText(boolean startElementRead) | final public String | getEncoding() | final public int | getEventType() | final static String | getEventTypeString(int eventType) | final public String | getLocalName() | final public Location | getLocation() | final public QName | getName() | final public String | getNameString() | final public NamespaceContext | getNamespaceContext() | final public int | getNamespaceCount() | final public String | getNamespaceDecl(String prefix) | final public String | getNamespacePrefix(int index) | final public String | getNamespaceURI(String prefix) | final public String | getNamespaceURI(int index) | final public String | getNamespaceURI() | final public String | getPIData() | final public String | getPITarget() | final public String | getPrefix() | final public Iterator | getPrefixes() | public Object | getProperty(java.lang.String name) | final public String | getText() | final public byte[] | getTextAlgorithmBytes() | final public int | getTextAlgorithmBytes(int sourceStart, byte[] target, int targetStart, int length) | final public byte[] | getTextAlgorithmBytesClone() | final public int | getTextAlgorithmIndex() | final public int | getTextAlgorithmLength() | final public int | getTextAlgorithmStart() | final public String | getTextAlgorithmURI() | final public char[] | getTextCharacters() | final public int | getTextCharacters(int sourceStart, char[] target, int targetStart, int length) | final public int | getTextLength() | final public int | getTextStart() | final public String | getURI(String prefix) | final public String | getVersion() | final public boolean | hasName() | final public boolean | hasNext() | final public boolean | hasText() | final public boolean | isAttributeSpecified(int index) | public boolean | isBase64Follows() | final public boolean | isCharacters() | final public boolean | isEndElement() | final public boolean | isStandalone() | final public boolean | isStartElement() | final public boolean | isWhiteSpace() 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() | final public int | nextTag() Skips any white space (isWhiteSpace() returns true), COMMENT,
or PROCESSING_INSTRUCTION,
until a START_ELEMENT or END_ELEMENT is reached.
If other than white space characters, COMMENT, PROCESSING_INSTRUCTION, START_ELEMENT, END_ELEMENT
are encountered, an exception is thrown. | final public int | nextTag(boolean currentTagRead) | public void | onBeforeOctetBufferOverwrite() | final public int | peekNext() | final protected void | processAIIEncodingAlgorithm(QualifiedName name) | final protected void | processAIIs() | final protected void | processCIIEncodingAlgorithm() | final protected void | processCommentII() | final protected void | processDII() | final protected void | processDIIOptionalProperties(int b) | final protected void | processEII(QualifiedName name, boolean hasAttributes) | final protected QualifiedName | processEIIIndexLarge(int b) | final protected QualifiedName | processEIIIndexMedium(int b) | final protected void | processEIIWithNamespaces(boolean hasAttributes) | final protected QualifiedName | processLiteralQualifiedName(int state, QualifiedName q) | final protected void | processProcessingII() | final protected void | processUnexpandedEntityReference(int b) | final public void | require(int type, String namespaceURI, String localName) 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() | protected void | resetOnError() | final protected void | resizeNamespaceAIIs() | public void | setInputStream(InputStream s) | final public void | setManager(StAXManager manager) | final public boolean | standaloneSet() |
INTERNAL_STATE_DOUBLE_TERMINATE_ELEMENT | final protected static int INTERNAL_STATE_DOUBLE_TERMINATE_ELEMENT(Code) | | |
INTERNAL_STATE_END_DOCUMENT | final protected static int INTERNAL_STATE_END_DOCUMENT(Code) | | |
INTERNAL_STATE_SINGLE_TERMINATE_ELEMENT_WITH_NAMESPACES | final protected static int INTERNAL_STATE_SINGLE_TERMINATE_ELEMENT_WITH_NAMESPACES(Code) | | |
INTERNAL_STATE_START_DOCUMENT | final protected static int INTERNAL_STATE_START_DOCUMENT(Code) | | |
INTERNAL_STATE_START_ELEMENT_TERMINATE | final protected static int INTERNAL_STATE_START_ELEMENT_TERMINATE(Code) | | |
INTERNAL_STATE_VOID | final protected static int INTERNAL_STATE_VOID(Code) | | |
_algorithmData | protected byte[] _algorithmData(Code) | | |
_algorithmDataLength | protected int _algorithmDataLength(Code) | | |
_algorithmDataOffset | protected int _algorithmDataOffset(Code) | | |
_algorithmId | protected int _algorithmId(Code) | | |
_characterEncodingScheme | protected String _characterEncodingScheme(Code) | | |
_characters | protected char[] _characters(Code) | | Characters associated with event.
|
_charactersOffset | protected int _charactersOffset(Code) | | |
_clearAttributes | protected boolean _clearAttributes(Code) | | |
_currentNamespaceAIIsEnd | protected int _currentNamespaceAIIsEnd(Code) | | |
_currentNamespaceAIIsStart | protected int _currentNamespaceAIIsStart(Code) | | Namespaces associated with START_ELEMENT or END_ELEMENT
|
_eventType | protected int _eventType(Code) | | Current event
|
_internalState | protected int _internalState(Code) | | |
_isAlgorithmDataCloned | protected boolean _isAlgorithmDataCloned(Code) | | |
_namespaceAIIsEndStack | protected int[] _namespaceAIIsEndStack(Code) | | |
_namespaceAIIsIndex | protected int _namespaceAIIsIndex(Code) | | |
_namespaceAIIsNamespaceName | protected String[] _namespaceAIIsNamespaceName(Code) | | |
_namespaceAIIsPrefix | protected String[] _namespaceAIIsPrefix(Code) | | |
_namespaceAIIsPrefixIndex | protected int[] _namespaceAIIsPrefixIndex(Code) | | |
_namespaceAIIsStartStack | protected int[] _namespaceAIIsStartStack(Code) | | |
_nsContext | protected NamespaceContextImpl _nsContext(Code) | | |
_piTarget | protected String _piTarget(Code) | | State for processing instruction
|
_qualifiedName | protected QualifiedName _qualifiedName(Code) | | Qualified name associated with START_ELEMENT or END_ELEMENT.
|
_stackCount | protected int _stackCount(Code) | | |
StAXDocumentParser | public StAXDocumentParser()(Code) | | |
accessNamespaceCount | final public int accessNamespaceCount()(Code) | | |
accessNamespaceURI | final public String accessNamespaceURI()(Code) | | |
accessTextCharacters | final public char[] accessTextCharacters()(Code) | | |
accessTextLength | final public int accessTextLength()(Code) | | |
accessTextStart | final public int accessTextStart()(Code) | | |
checkTextState | final protected void checkTextState()(Code) | | |
getAttributeCount | final public int getAttributeCount()(Code) | | |
getAttributeLocalName | final public String getAttributeLocalName(int index)(Code) | | |
getAttributeNameString | final public String getAttributeNameString(int index)(Code) | | |
getAttributeNamespace | final public String getAttributeNamespace(int index)(Code) | | |
getAttributePrefix | final public String getAttributePrefix(int index)(Code) | | |
getAttributeType | final public String getAttributeType(int index)(Code) | | |
getAttributeValue | final public String getAttributeValue(int index)(Code) | | |
getCharacterEncodingScheme | final public String getCharacterEncodingScheme()(Code) | | |
getElementText | final public String getElementText() throws XMLStreamException(Code) | | Reads the content of a text-only element. Precondition:
the current event is START_ELEMENT. Postcondition:
The current event is the corresponding END_ELEMENT.
throws: XMLStreamException - if the current event is not a START_ELEMENT or ifa non text element is encountered |
getElementText | final public String getElementText(boolean startElementRead) throws XMLStreamException(Code) | | Parameters: startElementRead - flag if start element has already been read |
getEventType | final public int getEventType()(Code) | | |
getEventTypeString | final static String getEventTypeString(int eventType)(Code) | | |
getNamespaceCount | final public int getNamespaceCount()(Code) | | |
getNamespacePrefix | final public String getNamespacePrefix(int index)(Code) | | |
getNamespaceURI | final public String getNamespaceURI(int index)(Code) | | |
getTextAlgorithmBytes | final public byte[] getTextAlgorithmBytes()(Code) | | |
getTextAlgorithmBytes | final public int getTextAlgorithmBytes(int sourceStart, byte[] target, int targetStart, int length) throws XMLStreamException(Code) | | |
getTextAlgorithmBytesClone | final public byte[] getTextAlgorithmBytesClone()(Code) | | |
getTextAlgorithmIndex | final public int getTextAlgorithmIndex()(Code) | | |
getTextAlgorithmLength | final public int getTextAlgorithmLength()(Code) | | |
getTextAlgorithmStart | final public int getTextAlgorithmStart()(Code) | | |
getTextAlgorithmURI | final public String getTextAlgorithmURI()(Code) | | |
getTextCharacters | final public char[] getTextCharacters()(Code) | | |
getTextCharacters | final public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException(Code) | | |
getTextLength | final public int getTextLength()(Code) | | |
getTextStart | final public int getTextStart()(Code) | | |
hasName | final public boolean hasName()(Code) | | |
hasText | final public boolean hasText()(Code) | | |
isAttributeSpecified | final public boolean isAttributeSpecified(int index)(Code) | | |
isCharacters | final public boolean isCharacters()(Code) | | |
isEndElement | final public boolean isEndElement()(Code) | | |
isStandalone | final public boolean isStandalone()(Code) | | |
isStartElement | final public boolean isStartElement()(Code) | | |
isWhiteSpace | final public boolean isWhiteSpace()(Code) | | 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.
true if the cursor points to all whitespace, false otherwise |
nextTag | final public int nextTag() throws XMLStreamException(Code) | | Skips any white space (isWhiteSpace() returns true), COMMENT,
or PROCESSING_INSTRUCTION,
until a START_ELEMENT or END_ELEMENT is reached.
If other than white space characters, COMMENT, PROCESSING_INSTRUCTION, START_ELEMENT, END_ELEMENT
are encountered, an exception is thrown. This method should
be used when processing element-only content seperated by white space.
This method should
be used when processing element-only content because
the parser is not able to recognize ignorable whitespace if
then DTD is missing or not interpreted.
the event type of the element read throws: XMLStreamException - if the current event is not white space |
nextTag | final public int nextTag(boolean currentTagRead) throws XMLStreamException(Code) | | 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
|
onBeforeOctetBufferOverwrite | public void onBeforeOctetBufferOverwrite()(Code) | | |
require | final public void require(int type, String namespaceURI, String localName) throws XMLStreamException(Code) | | 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.
If the namespaceURI is null it is not checked for equality, if the localName is null it is not checked for equality.
Parameters: type - the event type Parameters: namespaceURI - the uri of the event, may be null Parameters: localName - the localName of the event, may be null throws: XMLStreamException - if the required values are not matched. |
reset | public void reset()(Code) | | |
resetOnError | protected void resetOnError()(Code) | | |
resizeNamespaceAIIs | final protected void resizeNamespaceAIIs()(Code) | | |
standaloneSet | final public boolean standaloneSet()(Code) | | |
Methods inherited from com.sun.xml.fastinfoset.Decoder | final protected boolean _isFastInfosetDocument() throws IOException(Code)(Java Doc) final protected void closeIfRequired() throws IOException(Code)(Java Doc) protected String createQualifiedNameString(char[] first, String second)(Code)(Java Doc) final protected void decodeAdditionalData() throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeAlphabetOctetsAsCharBuffer(char[] restrictedAlphabet) throws FastInfosetException, IOException(Code)(Java Doc) final protected String decodeCharacterEncodingScheme() throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeDII() throws FastInfosetException, IOException(Code)(Java Doc) final protected QualifiedName decodeEIIIndexLarge() throws FastInfosetException, IOException(Code)(Java Doc) final protected QualifiedName decodeEIIIndexMedium() throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeFourBitAlphabetOctetsAsCharBuffer(char[] restrictedAlphabet) throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeHeader() throws FastInfosetException, IOException(Code)(Java Doc) final protected String decodeIdentifyingNonEmptyStringIndexOnFirstBitAsNamespaceName(boolean prefixPresent) throws FastInfosetException, IOException(Code)(Java Doc) final protected String decodeIdentifyingNonEmptyStringIndexOnFirstBitAsPrefix(boolean namespaceNamePresent) throws FastInfosetException, IOException(Code)(Java Doc) final protected String decodeIdentifyingNonEmptyStringOnFirstBit(StringArray table) throws FastInfosetException, IOException(Code)(Java Doc) final protected String decodeIdentifyingNonEmptyStringOnFirstBitAsNamespaceName(boolean prefixPresent) throws FastInfosetException, IOException(Code)(Java Doc) final protected String decodeIdentifyingNonEmptyStringOnFirstBitAsPrefix(boolean namespaceNamePresent) throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeInitialVocabulary() throws FastInfosetException, IOException(Code)(Java Doc) final protected int decodeIntegerIndexOnSecondBit() throws FastInfosetException, IOException(Code)(Java Doc) final protected QualifiedName decodeLiteralQualifiedName(int state, QualifiedName q) throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeNonEmptyOctetStringLengthOnSecondBit() throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeNonEmptyOctetStringOnSecondBitAsUtf8CharArray() throws FastInfosetException, IOException(Code)(Java Doc) final protected String decodeNonEmptyOctetStringOnSecondBitAsUtf8String() throws FastInfosetException, IOException(Code)(Java Doc) final protected int decodeNonIdentifyingStringOnFirstBit() throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeNotations() throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeOctetsOnFifthBitOfNonIdentifyingStringOnFirstBit(int b) throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeOctetsOnSeventhBitOfNonIdentifyingStringOnThirdBit(int b) throws FastInfosetException, IOException(Code)(Java Doc) final protected String decodeRAOctetsAsString(char[] restrictedAlphabet) throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeRestrictedAlphabetAsCharBuffer() throws FastInfosetException, IOException(Code)(Java Doc) final protected String decodeRestrictedAlphabetAsString() throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeUnparsedEntities() throws FastInfosetException, IOException(Code)(Java Doc) final protected void decodeUtf16StringAsCharBuffer() throws IOException(Code)(Java Doc) final protected String decodeUtf16StringAsString() throws IOException(Code)(Java Doc) final protected void decodeUtf8NCNameIntoCharBuffer() throws IOException(Code)(Java Doc) final protected void decodeUtf8StringAsCharBuffer() throws IOException(Code)(Java Doc) final protected void decodeUtf8StringAsCharBuffer(char[] ch, int offset) throws IOException(Code)(Java Doc) final protected String decodeUtf8StringAsString() throws IOException(Code)(Java Doc) final protected void decodeUtf8StringIntoCharBuffer() throws IOException(Code)(Java Doc) final protected void decodeUtf8StringIntoCharBuffer(char[] ch, int offset) throws IOException(Code)(Java Doc) final protected String decodeVersion() throws FastInfosetException, IOException(Code)(Java Doc) public int getBufferSize()(Code)(Java Doc) public Map getExternalVocabularies()(Code)(Java Doc) public boolean getForceStreamClose()(Code)(Java Doc) public boolean getParseFragments()(Code)(Java Doc) public Map getRegisteredEncodingAlgorithms()(Code)(Java Doc) public boolean getStringInterning()(Code)(Java Doc) public static boolean isFastInfosetDocument(InputStream s) throws IOException(Code)(Java Doc) final protected int peek() throws IOException(Code)(Java Doc) final protected int peek(OctetBufferListener octetBufferListener) throws IOException(Code)(Java Doc) final protected int peek2(OctetBufferListener octetBufferListener) throws IOException(Code)(Java Doc) final protected int read() throws IOException(Code)(Java Doc) public void reset()(Code)(Java Doc) public void setBufferSize(int bufferSize)(Code)(Java Doc) public void setExternalVocabularies(Map referencedVocabualries)(Code)(Java Doc) public void setForceStreamClose(boolean needForceStreamClose)(Code)(Java Doc) public void setInputStream(InputStream s)(Code)(Java Doc) public void setParseFragments(boolean parseFragments)(Code)(Java Doc) public void setRegisteredEncodingAlgorithms(Map algorithms)(Code)(Java Doc) public void setStringInterning(boolean stringInterning)(Code)(Java Doc) public void setVocabulary(ParserVocabulary v)(Code)(Java Doc)
|
|
|