Package com.sun.xml.fastinfoset.dom
Class DOMDocumentParser
java.lang.Object
com.sun.xml.fastinfoset.Decoder
com.sun.xml.fastinfoset.dom.DOMDocumentParser
- All Implemented Interfaces:
FastInfosetParser
The Fast Infoset DOM parser.
Instantiate this parser to parse a fast infoset document in accordance with the DOM API.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.xml.fastinfoset.Decoder
Decoder.EncodingAlgorithmInputStream -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Elementprotected Nodeprotected Documentprotected Attr[]protected intprotected int[]protected intFields inherited from class 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, _v, BUFFER_SIZE_SYSTEM_PROPERTY, NISTRING_EMPTY_STRING, NISTRING_ENCODING_ALGORITHM, NISTRING_INDEX, NISTRING_STRING, STRING_INTERNING_SYSTEM_PROPERTYFields inherited from interface org.jvnet.fastinfoset.FastInfosetParser
BUFFER_SIZE_PROPERTY, EXTERNAL_VOCABULARIES_PROPERTY, FORCE_STREAM_CLOSE_PROPERTY, REGISTERED_ENCODING_ALGORITHMS_PROPERTY, STRING_INTERNING_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconvertEncodingAlgorithmDataToCharacters(boolean isAttributeValue) protected AttrcreateAttribute(String namespaceName, String qName, String localName) protected ElementcreateElement(String namespaceName, String qName, String localName) protected final voidparse()protected final voidparse(InputStream s) voidparse(Document d, InputStream s) Parse a fast infoset document into aDocumentinstance.protected final voidprotected final voidprotected final voidprotected final voidprotected final voidprocessEII(QualifiedName name, boolean hasAttributes) protected final voidprotected final QualifiedNameprocessLiteralQualifiedName(int state) protected final QualifiedNameprocessLiteralQualifiedName(int state, QualifiedName q) protected final voidprotected voidMethods inherited from class com.sun.xml.fastinfoset.Decoder
_isFastInfosetDocument, closeIfRequired, createQualifiedNameString, createQualifiedNameString, decodeAdditionalData, decodeAlphabetOctetsAsCharBuffer, decodeCharacterEncodingScheme, decodeDII, decodeEIIIndexLarge, decodeEIIIndexMedium, decodeFourBitAlphabetOctetsAsCharBuffer, decodeHeader, decodeIdentifyingNonEmptyStringIndexOnFirstBitAsNamespaceName, decodeIdentifyingNonEmptyStringIndexOnFirstBitAsPrefix, decodeIdentifyingNonEmptyStringOnFirstBit, decodeIdentifyingNonEmptyStringOnFirstBitAsNamespaceName, decodeIdentifyingNonEmptyStringOnFirstBitAsPrefix, decodeInitialVocabulary, decodeIntegerIndexOnSecondBit, decodeLiteralQualifiedName, decodeNonEmptyOctetStringLengthOnSecondBit, decodeNonEmptyOctetStringOnSecondBitAsUtf8CharArray, decodeNonEmptyOctetStringOnSecondBitAsUtf8String, decodeNonIdentifyingStringOnFirstBit, decodeNotations, decodeOctetsOnFifthBitOfNonIdentifyingStringOnFirstBit, decodeOctetsOnSeventhBitOfNonIdentifyingStringOnThirdBit, decodeRAOctetsAsString, decodeRestrictedAlphabetAsCharBuffer, decodeRestrictedAlphabetAsString, decodeUnparsedEntities, decodeUtf16StringAsCharBuffer, decodeUtf16StringAsString, decodeUtf8NCNameIntoCharBuffer, decodeUtf8StringAsCharBuffer, decodeUtf8StringAsCharBuffer, decodeUtf8StringAsString, decodeUtf8StringIntoCharBuffer, decodeUtf8StringIntoCharBuffer, decodeVersion, getBufferSize, getExternalVocabularies, getForceStreamClose, getParseFragments, getRegisteredEncodingAlgorithms, getStringInterning, isFastInfosetDocument, peek, peek, peek2, read, reset, setBufferSize, setExternalVocabularies, setForceStreamClose, setInputStream, setParseFragments, setRegisteredEncodingAlgorithms, setStringInterning, setVocabulary
-
Field Details
-
_document
-
_currentNode
-
_currentElement
-
_namespaceAttributes
-
_namespaceAttributesIndex
protected int _namespaceAttributesIndex -
_namespacePrefixes
protected int[] _namespacePrefixes -
_namespacePrefixesIndex
protected int _namespacePrefixesIndex
-
-
Constructor Details
-
DOMDocumentParser
public DOMDocumentParser()
-
-
Method Details
-
parse
Parse a fast infoset document into aDocumentinstance.Nodes will be created and appended to theDocumentinstance.- Parameters:
d- theDocumentinstance.s- the input stream containing the fast infoset document.- Throws:
FastInfosetExceptionIOException
-
parse
- Throws:
FastInfosetExceptionIOException
-
resetOnError
protected void resetOnError() -
parse
- Throws:
FastInfosetExceptionIOException
-
processDII
- Throws:
FastInfosetExceptionIOException
-
processDIIOptionalProperties
- Throws:
FastInfosetExceptionIOException
-
processEII
protected final void processEII(QualifiedName name, boolean hasAttributes) throws FastInfosetException, IOException - Throws:
FastInfosetExceptionIOException
-
processEIIWithNamespaces
- Throws:
FastInfosetExceptionIOException
-
processLiteralQualifiedName
protected final QualifiedName processLiteralQualifiedName(int state, QualifiedName q) throws FastInfosetException, IOException - Throws:
FastInfosetExceptionIOException
-
processLiteralQualifiedName
protected final QualifiedName processLiteralQualifiedName(int state) throws FastInfosetException, IOException - Throws:
FastInfosetExceptionIOException
-
processAIIs
- Throws:
FastInfosetExceptionIOException
-
processCommentII
- Throws:
FastInfosetExceptionIOException
-
processProcessingII
- Throws:
FastInfosetExceptionIOException
-
createElement
-
createAttribute
-
convertEncodingAlgorithmDataToCharacters
protected String convertEncodingAlgorithmDataToCharacters(boolean isAttributeValue) throws FastInfosetException, IOException - Throws:
FastInfosetExceptionIOException
-