public class DOMDocumentParser extends Decoder
Instantiate this parser to parse a fast infoset document in accordance with the DOM API.
Decoder.EncodingAlgorithmInputStream
Modifier and Type | Field and Description |
---|---|
protected Element |
_currentElement |
protected Node |
_currentNode |
protected Document |
_document |
protected Attr[] |
_namespaceAttributes |
protected int |
_namespaceAttributesIndex |
protected int[] |
_namespacePrefixes |
protected int |
_namespacePrefixesIndex |
_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_PROPERTY
BUFFER_SIZE_PROPERTY, EXTERNAL_VOCABULARIES_PROPERTY, FORCE_STREAM_CLOSE_PROPERTY, REGISTERED_ENCODING_ALGORITHMS_PROPERTY, STRING_INTERNING_PROPERTY
Constructor and Description |
---|
DOMDocumentParser() |
Modifier and Type | Method and Description |
---|---|
protected String |
convertEncodingAlgorithmDataToCharacters(boolean isAttributeValue) |
protected Attr |
createAttribute(String namespaceName,
String qName,
String localName) |
protected Element |
createElement(String namespaceName,
String qName,
String localName) |
protected void |
parse() |
void |
parse(Document d,
InputStream s)
Parse a fast infoset document into a
Document instance. |
protected void |
parse(InputStream s) |
protected void |
processAIIs() |
protected void |
processCommentII() |
protected void |
processDII() |
protected void |
processDIIOptionalProperties() |
protected void |
processEII(QualifiedName name,
boolean hasAttributes) |
protected void |
processEIIWithNamespaces() |
protected QualifiedName |
processLiteralQualifiedName(int state) |
protected QualifiedName |
processLiteralQualifiedName(int state,
QualifiedName q) |
protected void |
processProcessingII() |
protected void |
resetOnError() |
_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
protected Document _document
protected Node _currentNode
protected Element _currentElement
protected Attr[] _namespaceAttributes
protected int _namespaceAttributesIndex
protected int[] _namespacePrefixes
protected int _namespacePrefixesIndex
public void parse(Document d, InputStream s) throws FastInfosetException, IOException
Document
instance.
Node
s will be created and appended to the Document
instance.
d
- the Document
instance.s
- the input stream containing the fast infoset document.FastInfosetException
IOException
protected final void parse(InputStream s) throws FastInfosetException, IOException
FastInfosetException
IOException
protected void resetOnError()
protected final void parse() throws FastInfosetException, IOException
FastInfosetException
IOException
protected final void processDII() throws FastInfosetException, IOException
FastInfosetException
IOException
protected final void processDIIOptionalProperties() throws FastInfosetException, IOException
FastInfosetException
IOException
protected final void processEII(QualifiedName name, boolean hasAttributes) throws FastInfosetException, IOException
FastInfosetException
IOException
protected final void processEIIWithNamespaces() throws FastInfosetException, IOException
FastInfosetException
IOException
protected final QualifiedName processLiteralQualifiedName(int state, QualifiedName q) throws FastInfosetException, IOException
FastInfosetException
IOException
protected final QualifiedName processLiteralQualifiedName(int state) throws FastInfosetException, IOException
FastInfosetException
IOException
protected final void processAIIs() throws FastInfosetException, IOException
FastInfosetException
IOException
protected final void processCommentII() throws FastInfosetException, IOException
FastInfosetException
IOException
protected final void processProcessingII() throws FastInfosetException, IOException
FastInfosetException
IOException
protected Attr createAttribute(String namespaceName, String qName, String localName)
protected String convertEncodingAlgorithmDataToCharacters(boolean isAttributeValue) throws FastInfosetException, IOException
FastInfosetException
IOException
Copyright © 2019 Oracle Corpration. All rights reserved.