Top Description Fields Constructors Methods
com.sun.xml.fastinfoset.dom

public Class DOMDocumentParser

extends Decoder
Class Inheritance
Imports
com.sun.xml.fastinfoset.Decoder, .DecoderStateTables, .EncodingConstants, .QualifiedName, .CommonResourceBundle, com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithmFactory, com.sun.xml.fastinfoset.util.CharArray, .CharArrayString, .DuplicateAttributeVerifier, java.io.IOException, .InputStream, org.jvnet.fastinfoset.EncodingAlgorithm, .EncodingAlgorithmException, .EncodingAlgorithmIndexes, .FastInfosetException, org.w3c.dom.Attr, .Document, .Element, .Node, .Text

The Fast Infoset DOM parser.

Instantiate this parser to parse a fast infoset document in accordance with the DOM API.

Field Summary

Modifier and TypeField and Description
protected Element
protected Node
protected Document
protected Attr[]
protected int
protected int[]
protected int
Inherited from com.sun.xml.fastinfoset.Decoder:
_addToTable_attributeNameTable_attributeValueTable_b_bufferSize_characterContentChunkTable_charBuffer_charBufferLength_doubleTerminate_duplicateAttributeVerifier_elementNameTable_identifier_integer_namespaceNameIndex_needForceStreamClose_notations_octetBuffer_octetBufferEnd_octetBufferLength_octetBufferOffset_octetBufferStart_parseFragments_prefixIndex_prefixTable_registeredEncodingAlgorithms_terminate_unparsedEntities_vBUFFER_SIZE_SYSTEM_PROPERTYNISTRING_EMPTY_STRINGNISTRING_ENCODING_ALGORITHMNISTRING_INDEXNISTRING_STRINGSTRING_INTERNING_SYSTEM_PROPERTY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
protected String
convertEncodingAlgorithmDataToCharacters(boolean isAttributeValue)

protected Attr
createAttribute(String namespaceName, String qName, String localName)

protected Element
createElement(String namespaceName, String qName, String localName)

public void
parse(Document
the Document instance.
d
,
InputStream
the input stream containing the fast infoset document.
s
)

Parse a fast infoset document into a Document instance.

protected final void
protected final void
protected final void
protected final void
protected final void
protected final void
protected final void
processEII(QualifiedName name, boolean hasAttributes)

protected final void
protected final QualifiedName
protected final QualifiedName
protected final void
private String
protected void
Inherited from com.sun.xml.fastinfoset.Decoder:
_isFastInfosetDocumentcloseIfRequiredcreateQualifiedNameStringcreateQualifiedNameStringdecodeAdditionalDatadecodeAlphabetOctetsAsCharBufferdecodeCharacterEncodingSchemedecodeDIIdecodeEIIIndexLargedecodeEIIIndexMediumdecodeFourBitAlphabetOctetsAsCharBufferdecodeHeaderdecodeIdentifyingNonEmptyStringIndexOnFirstBitAsNamespaceNamedecodeIdentifyingNonEmptyStringIndexOnFirstBitAsPrefixdecodeIdentifyingNonEmptyStringOnFirstBitdecodeIdentifyingNonEmptyStringOnFirstBitAsNamespaceNamedecodeIdentifyingNonEmptyStringOnFirstBitAsPrefixdecodeInitialVocabularydecodeIntegerIndexOnSecondBitdecodeLiteralQualifiedNamedecodeNonEmptyOctetStringLengthOnSecondBitdecodeNonEmptyOctetStringOnSecondBitAsUtf8CharArraydecodeNonEmptyOctetStringOnSecondBitAsUtf8StringdecodeNonIdentifyingStringOnFirstBitdecodeNotationsdecodeOctetsOnFifthBitOfNonIdentifyingStringOnFirstBitdecodeOctetsOnSeventhBitOfNonIdentifyingStringOnThirdBitdecodeRAOctetsAsStringdecodeRestrictedAlphabetAsCharBufferdecodeRestrictedAlphabetAsStringdecodeUnparsedEntitiesdecodeUtf16StringAsCharBufferdecodeUtf16StringAsStringdecodeUtf8NCNameIntoCharBufferdecodeUtf8StringAsCharBufferdecodeUtf8StringAsCharBufferdecodeUtf8StringAsStringdecodeUtf8StringIntoCharBufferdecodeUtf8StringIntoCharBufferdecodeVersiongetBufferSizegetExternalVocabulariesgetForceStreamClosegetParseFragmentsgetRegisteredEncodingAlgorithmsgetStringInterningisFastInfosetDocumentpeekpeekpeek2readresetsetBufferSizesetExternalVocabulariessetForceStreamClosesetInputStreamsetParseFragmentssetRegisteredEncodingAlgorithmssetStringInterningsetVocabulary

Field Detail

_currentElementback to summary
protected Element _currentElement
_currentNodeback to summary
protected Node _currentNode
_documentback to summary
protected Document _document
_namespaceAttributesback to summary
protected Attr[] _namespaceAttributes
_namespaceAttributesIndexback to summary
protected int _namespaceAttributesIndex
_namespacePrefixesback to summary
protected int[] _namespacePrefixes
_namespacePrefixesIndexback to summary
protected int _namespacePrefixesIndex

Constructor Detail

DOMDocumentParserback to summary
public DOMDocumentParser()

Method Detail

appendOrCreateTextDataback to summary
private void appendOrCreateTextData(String textData)
convertEncodingAlgorithmDataToCharactersback to summary
protected String convertEncodingAlgorithmDataToCharacters(boolean isAttributeValue) throws FastInfosetException, IOException
createAttributeback to summary
protected Attr createAttribute(String namespaceName, String qName, String localName)
createElementback to summary
protected Element createElement(String namespaceName, String qName, String localName)
parseback to summary
public void parse(Document d, InputStream s) throws FastInfosetException, IOException

Parse a fast infoset document into a Document instance.

Nodes will be created and appended to the Document instance.

Parameters
d:Document

the Document instance.

s:InputStream

the input stream containing the fast infoset document.

parseback to summary
protected final void parse(InputStream s) throws FastInfosetException, IOException
parseback to summary
protected final void parse() throws FastInfosetException, IOException
processAIIsback to summary
protected final void processAIIs() throws FastInfosetException, IOException
Annotations
@SuppressWarnings:fallthrough
processCommentIIback to summary
protected final void processCommentII() throws FastInfosetException, IOException
processDIIback to summary
protected final void processDII() throws FastInfosetException, IOException
Annotations
@SuppressWarnings:fallthrough
processDIIOptionalPropertiesback to summary
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException
processEIIback to summary
protected final void processEII(QualifiedName name, boolean hasAttributes) throws FastInfosetException, IOException
Annotations
@SuppressWarnings:fallthrough
processEIIWithNamespacesback to summary
protected final void processEIIWithNamespaces() throws FastInfosetException, IOException
processLiteralQualifiedNameback to summary
protected final QualifiedName processLiteralQualifiedName(int state, QualifiedName q) throws FastInfosetException, IOException
processLiteralQualifiedNameback to summary
protected final QualifiedName processLiteralQualifiedName(int state) throws FastInfosetException, IOException
processProcessingIIback to summary
protected final void processProcessingII() throws FastInfosetException, IOException
processUtf8CharacterStringback to summary
private String processUtf8CharacterString() throws FastInfosetException, IOException
resetOnErrorback to summary
protected void resetOnError()