Concrete implementations extending Decoder will utilize methods on Decoder to decode XML infoset according to the Fast Infoset standard. It is the responsibility of the concrete implementation to ensure that methods are invoked in the correct order to correctly decode a valid fast infoset document.
This class extends org.sax.xml.DefaultHandler so that concrete SAX implementations can be used with javax.xml.parsers.SAXParser and the parse methods that take org.sax.xml.DefaultHandler as a parameter.
Buffering of octets that are read from an java. is
supported in a similar manner to a java..
Combining buffering with decoding enables better performance.
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 boolean | _addToTable
True if an entry is required to be added to a table |
| protected QualifiedNameArray | _attributeNameTable
The attribute name table of the vocabulary. |
| protected StringArray | _attributeValueTable
The attribute value table of the vocabulary. |
| protected int | _b
The current octet that is being read |
| private int | |
| protected int | _bufferSize
The size of the internal buffer. |
| private static int | |
| protected ContiguousCharArrayArray | _characterContentChunkTable
The character content chunk table of the vocabulary. |
| protected char[] | _charBuffer
The internal buffer of characters. |
| protected int | _charBufferLength
The length of characters in the buffer of characters. |
| protected boolean | _doubleTerminate
True if two information item are terminated in direct sequence. |
| protected DuplicateAttributeVerifier | _duplicateAttributeVerifier
Helper class that checks for duplicate attribute information items. |
| protected QualifiedNameArray | _elementNameTable
The element name table of the vocabulary. |
| private Map | _externalVocabularies
The map of URIs to referenced vocabularies. |
| protected int | _identifier
The vocabulary table index of identifying string or the identifier of an encoding algorithm or restricted alphabet. |
| protected int | _integer
The vocabulary table index to an indexed non identifying string. |
| protected int | |
| protected boolean | _needForceStreamClose
True if needs to close underlying input stream. |
| protected List | _notations
The list of Notation Information Items that are part of the Document Information Item. |
| protected byte[] | _octetBuffer
The internal buffer used for decoding. |
| protected int | _octetBufferEnd
The end of the buffer. |
| protected int | _octetBufferLength
The length of some octets in the buffer that are to be read. |
| protected int | _octetBufferOffset
The offset into the buffer to read the next byte. |
| protected int | _octetBufferStart
A mark into the internal buffer used for decoding encoded algorithm or restricted alphabet data. |
| protected boolean | _parseFragments
True if can parse fragments. |
| protected int | |
| protected PrefixArray | _prefixTable
The prefix table of the vocabulary. |
| protected Map | _registeredEncodingAlgorithms
The map of URIs to registered encoding algorithms. |
| private InputStream | _s
The input stream from which the fast infoset document is being read. |
| private boolean | _stringInterning
True if string interning is performed by the decoder. |
| private static boolean | |
| protected boolean | _terminate
True if an information item is terminated. |
| protected List | _unparsedEntities
The list of Unparsed Entity Information Items that are part of the Document Information Item. |
| private char | |
| private char | |
| protected ParserVocabulary | _v
The vocabulary used for decoding. |
| private boolean | _vIsInternal
True if the vocabulary is internally created by decoder. |
| public static final String | BUFFER_SIZE_SYSTEM_PROPERTY
Internal buffer size interning system property. |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| public static final String | STRING_INTERNING_SYSTEM_PROPERTY
String interning system property. |
| private static final char[] | |
| private static final char[] | |
| private static final char[] |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected final boolean | |
| private boolean | |
| protected final void | |
| private boolean | |
| protected String | |
| protected String | |
| protected final void | |
| protected final void | |
| protected final String | |
| protected final void | |
| protected final QualifiedName | |
| protected final QualifiedName | |
| private void | |
| protected final void | |
| protected final void | |
| protected final String | |
| protected final String | |
| protected final String | |
| protected final String | |
| protected final String | |
| protected final void | |
| protected final int | |
| protected final QualifiedName | |
| protected final void | |
| protected final void | |
| protected final String | |
| protected final int | |
| protected final void | |
| private int | |
| protected final void | |
| protected final void | |
| protected final String | |
| protected final void | |
| protected final String | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| protected final void | |
| protected final void | |
| protected final String | |
| private void | |
| private int | |
| private void | |
| protected final void | |
| private void | |
| private void | |
| protected final void | |
| protected final void | |
| protected final String | |
| private void | |
| protected final void | |
| protected final void | |
| private void | |
| private char | |
| protected final String | |
| private void | |
| public int | getBufferSize()
Implements org. Get the buffer size. |
| public Map | getExternalVocabularies()
Implements org. Get the map of referenced external vocabularies. |
| public boolean | getForceStreamClose()
Implements org. Return the force stream close property. |
| public boolean | getParseFragments()
Implements org. Return the parse fragments property. |
| public Map | getRegisteredEncodingAlgorithms()
Implements org. Gets the set of registered encoding algorithms. |
| public boolean | getStringInterning()
Implements org. Return the string interning property. |
| public static boolean | |
| protected final int | |
| protected final int | |
| protected final int | |
| protected final int | |
| private int | |
| private void | |
| public void | |
| private void | |
| public void | setBufferSize(int bufferSize)
Implements org. Set the buffer size. |
| public void | setExternalVocabularies(Map<String, ParserVocabulary> referencedVocabualries)
Implements org. Set the map of referenced external vocabularies. |
| public void | setForceStreamClose(boolean needForceStreamClose)
Implements org. Set the force stream close property. |
| public void | setInputStream(InputStream
the InputStream where the fast infoset document is decoded from. s)Set the InputStream to decode the fast infoset document. |
| public void | setParseFragments(boolean parseFragments)
Implements org. Set the parse fragments property. |
| public void | setRegisteredEncodingAlgorithms(Map<String, EncodingAlgorithm> algorithms)
Implements org. Sets the set of registered encoding algorithms. |
| public void | setStringInterning(boolean stringInterning)
Implements org. Set the string interning property. |
| public void | setVocabulary(ParserVocabulary
the vocabulary to be used for decoding. v)Set the ParserVocabulary to be used for decoding. |