Java Doc for Decoder.java in  » 6.0-JDK-Modules-com.sun » fastinfoset » com » sun » xml » fastinfoset » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » fastinfoset » com.sun.xml.fastinfoset 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.fastinfoset.Decoder

All known Subclasses:   com.sun.xml.fastinfoset.stax.StAXDocumentParser,  com.sun.xml.fastinfoset.sax.SAXDocumentParser,  com.sun.xml.fastinfoset.dom.DOMDocumentParser,
Decoder
abstract public class Decoder implements FastInfosetParser(Code)
Abstract decoder for developing concrete encoders. 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.io.InputStream is supported in a similar manner to a java.io.BufferedInputStream . Combining buffering with decoding enables better performance.

More than one fast infoset document may be decoded from the java.io.InputStream .


Inner Class :protected class EncodingAlgorithmInputStream extends InputStream

Field Summary
final public static  StringBUFFER_SIZE_SYSTEM_PROPERTY
     Internal buffer size interning system property.
final protected static  intNISTRING_EMPTY_STRING
    
final protected static  intNISTRING_ENCODING_ALGORITHM
    
final protected static  intNISTRING_INDEX
    
final protected static  intNISTRING_STRING
    
final public static  StringSTRING_INTERNING_SYSTEM_PROPERTY
     String interning system property.
final protected static  char[]XMLNS_NAMESPACE_NAME_CHARS
    
final protected static  char[]XMLNS_NAMESPACE_PREFIX_CHARS
    
final protected static  char[]XML_NAMESPACE_NAME_CHARS
    
protected  boolean_addToTable
    
protected  QualifiedNameArray_attributeNameTable
     The attribute name table of the vocabulary.
protected  StringArray_attributeValueTable
     The attribute value table of the vocabulary.
protected  int_b
    
protected  int_bufferSize
     The size of the internal buffer.
protected  char[]_charBuffer
     The internal buffer of characters.
protected  int_charBufferLength
     The length of characters in the buffer of characters.
protected  ContiguousCharArrayArray_characterContentChunkTable
     The character content chunk table of the vocabulary.
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.
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_namespaceNameIndex
    
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_prefixIndex
    
protected  PrefixArray_prefixTable
     The prefix table of the vocabulary.
protected  Map_registeredEncodingAlgorithms
     The map of URIs to registered encoding algorithms.
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.
protected  ParserVocabulary_v
     The vocabulary used for decoding.

Constructor Summary
protected  Decoder()
     Default constructor for the Decoder.

Method Summary
final protected  boolean_isFastInfosetDocument()
    
final protected  voidcloseIfRequired()
    
protected  StringcreateQualifiedNameString(char[] first, String second)
    
final protected  voiddecodeAdditionalData()
    
final protected  voiddecodeAlphabetOctetsAsCharBuffer(char[] restrictedAlphabet)
    
final protected  StringdecodeCharacterEncodingScheme()
    
final protected  voiddecodeDII()
    
final protected  QualifiedNamedecodeEIIIndexLarge()
    
final protected  QualifiedNamedecodeEIIIndexMedium()
    
final protected  voiddecodeFourBitAlphabetOctetsAsCharBuffer(char[] restrictedAlphabet)
    
final protected  voiddecodeHeader()
    
final protected  StringdecodeIdentifyingNonEmptyStringIndexOnFirstBitAsNamespaceName(boolean prefixPresent)
    
final protected  StringdecodeIdentifyingNonEmptyStringIndexOnFirstBitAsPrefix(boolean namespaceNamePresent)
    
final protected  StringdecodeIdentifyingNonEmptyStringOnFirstBit(StringArray table)
    
final protected  StringdecodeIdentifyingNonEmptyStringOnFirstBitAsNamespaceName(boolean prefixPresent)
    
final protected  StringdecodeIdentifyingNonEmptyStringOnFirstBitAsPrefix(boolean namespaceNamePresent)
    
final protected  voiddecodeInitialVocabulary()
    
final protected  intdecodeIntegerIndexOnSecondBit()
    
final protected  QualifiedNamedecodeLiteralQualifiedName(int state, QualifiedName q)
    
final protected  voiddecodeNonEmptyOctetStringLengthOnSecondBit()
    
final protected  voiddecodeNonEmptyOctetStringOnSecondBitAsUtf8CharArray()
    
final protected  StringdecodeNonEmptyOctetStringOnSecondBitAsUtf8String()
    
final protected  intdecodeNonIdentifyingStringOnFirstBit()
    
final protected  voiddecodeNotations()
    
final protected  voiddecodeOctetsOnFifthBitOfNonIdentifyingStringOnFirstBit(int b)
    
final protected  voiddecodeOctetsOnSeventhBitOfNonIdentifyingStringOnThirdBit(int b)
    
final protected  StringdecodeRAOctetsAsString(char[] restrictedAlphabet)
    
final protected  voiddecodeRestrictedAlphabetAsCharBuffer()
    
final protected  StringdecodeRestrictedAlphabetAsString()
    
final protected  voiddecodeUnparsedEntities()
    
final protected  voiddecodeUtf16StringAsCharBuffer()
    
final protected  StringdecodeUtf16StringAsString()
    
final protected  voiddecodeUtf8NCNameIntoCharBuffer()
    
final protected  voiddecodeUtf8StringAsCharBuffer()
    
final protected  voiddecodeUtf8StringAsCharBuffer(char[] ch, int offset)
    
final protected  StringdecodeUtf8StringAsString()
    
final protected  voiddecodeUtf8StringIntoCharBuffer()
    
final protected  voiddecodeUtf8StringIntoCharBuffer(char[] ch, int offset)
    
final protected  StringdecodeVersion()
    
public  intgetBufferSize()
    
public  MapgetExternalVocabularies()
    
public  booleangetForceStreamClose()
    
public  booleangetParseFragments()
    
public  MapgetRegisteredEncodingAlgorithms()
    
public  booleangetStringInterning()
    
public static  booleanisFastInfosetDocument(InputStream s)
    
final protected  intpeek()
    
final protected  intpeek(OctetBufferListener octetBufferListener)
    
final protected  intpeek2(OctetBufferListener octetBufferListener)
    
final protected  intread()
    
public  voidreset()
     Reset the decoder for reuse decoding another XML infoset.
public  voidsetBufferSize(int bufferSize)
    
public  voidsetExternalVocabularies(Map referencedVocabualries)
    
public  voidsetForceStreamClose(boolean needForceStreamClose)
    
public  voidsetInputStream(InputStream s)
     Set the InputStream to decode the fast infoset document.
public  voidsetParseFragments(boolean parseFragments)
    
public  voidsetRegisteredEncodingAlgorithms(Map algorithms)
    
public  voidsetStringInterning(boolean stringInterning)
    
public  voidsetVocabulary(ParserVocabulary v)
     Set the ParserVocabulary to be used for decoding.

Field Detail
BUFFER_SIZE_SYSTEM_PROPERTY
final public static String BUFFER_SIZE_SYSTEM_PROPERTY(Code)
Internal buffer size interning system property.



NISTRING_EMPTY_STRING
final protected static int NISTRING_EMPTY_STRING(Code)



NISTRING_ENCODING_ALGORITHM
final protected static int NISTRING_ENCODING_ALGORITHM(Code)



NISTRING_INDEX
final protected static int NISTRING_INDEX(Code)



NISTRING_STRING
final protected static int NISTRING_STRING(Code)



STRING_INTERNING_SYSTEM_PROPERTY
final public static String STRING_INTERNING_SYSTEM_PROPERTY(Code)
String interning system property.



XMLNS_NAMESPACE_NAME_CHARS
final protected static char[] XMLNS_NAMESPACE_NAME_CHARS(Code)



XMLNS_NAMESPACE_PREFIX_CHARS
final protected static char[] XMLNS_NAMESPACE_PREFIX_CHARS(Code)



XML_NAMESPACE_NAME_CHARS
final protected static char[] XML_NAMESPACE_NAME_CHARS(Code)



_addToTable
protected boolean _addToTable(Code)
True if an entry is required to be added to a table



_attributeNameTable
protected QualifiedNameArray _attributeNameTable(Code)
The attribute name table of the vocabulary.



_attributeValueTable
protected StringArray _attributeValueTable(Code)
The attribute value table of the vocabulary.



_b
protected int _b(Code)
The current octet that is being read



_bufferSize
protected int _bufferSize(Code)
The size of the internal buffer.



_charBuffer
protected char[] _charBuffer(Code)
The internal buffer of characters.



_charBufferLength
protected int _charBufferLength(Code)
The length of characters in the buffer of characters.



_characterContentChunkTable
protected ContiguousCharArrayArray _characterContentChunkTable(Code)
The character content chunk table of the vocabulary.



_doubleTerminate
protected boolean _doubleTerminate(Code)
True if two information item are terminated in direct sequence.



_duplicateAttributeVerifier
protected DuplicateAttributeVerifier _duplicateAttributeVerifier(Code)
Helper class that checks for duplicate attribute information items.



_elementNameTable
protected QualifiedNameArray _elementNameTable(Code)
The element name table of the vocabulary.



_identifier
protected int _identifier(Code)
The vocabulary table index of identifying string or the identifier of an encoding algorithm or restricted alphabet.



_integer
protected int _integer(Code)
The vocabulary table index to an indexed non identifying string.



_namespaceNameIndex
protected int _namespaceNameIndex(Code)



_needForceStreamClose
protected boolean _needForceStreamClose(Code)
True if needs to close underlying input stream.



_notations
protected List _notations(Code)
The list of Notation Information Items that are part of the Document Information Item.



_octetBuffer
protected byte[] _octetBuffer(Code)
The internal buffer used for decoding.



_octetBufferEnd
protected int _octetBufferEnd(Code)
The end of the buffer.



_octetBufferLength
protected int _octetBufferLength(Code)
The length of some octets in the buffer that are to be read.



_octetBufferOffset
protected int _octetBufferOffset(Code)
The offset into the buffer to read the next byte.



_octetBufferStart
protected int _octetBufferStart(Code)
A mark into the internal buffer used for decoding encoded algorithm or restricted alphabet data.



_parseFragments
protected boolean _parseFragments(Code)
True if can parse fragments.



_prefixIndex
protected int _prefixIndex(Code)



_prefixTable
protected PrefixArray _prefixTable(Code)
The prefix table of the vocabulary.



_registeredEncodingAlgorithms
protected Map _registeredEncodingAlgorithms(Code)
The map of URIs to registered encoding algorithms.



_terminate
protected boolean _terminate(Code)
True if an information item is terminated.



_unparsedEntities
protected List _unparsedEntities(Code)
The list of Unparsed Entity Information Items that are part of the Document Information Item.



_v
protected ParserVocabulary _v(Code)
The vocabulary used for decoding.




Constructor Detail
Decoder
protected Decoder()(Code)
Default constructor for the Decoder.




Method Detail
_isFastInfosetDocument
final protected boolean _isFastInfosetDocument() throws IOException(Code)



closeIfRequired
final protected void closeIfRequired() throws IOException(Code)



createQualifiedNameString
protected String createQualifiedNameString(char[] first, String second)(Code)



decodeAdditionalData
final protected void decodeAdditionalData() throws FastInfosetException, IOException(Code)



decodeAlphabetOctetsAsCharBuffer
final protected void decodeAlphabetOctetsAsCharBuffer(char[] restrictedAlphabet) throws FastInfosetException, IOException(Code)



decodeCharacterEncodingScheme
final protected String decodeCharacterEncodingScheme() throws FastInfosetException, IOException(Code)



decodeDII
final protected void decodeDII() throws FastInfosetException, IOException(Code)



decodeEIIIndexLarge
final protected QualifiedName decodeEIIIndexLarge() throws FastInfosetException, IOException(Code)



decodeEIIIndexMedium
final protected QualifiedName decodeEIIIndexMedium() throws FastInfosetException, IOException(Code)



decodeFourBitAlphabetOctetsAsCharBuffer
final protected void decodeFourBitAlphabetOctetsAsCharBuffer(char[] restrictedAlphabet) throws FastInfosetException, IOException(Code)



decodeHeader
final protected void decodeHeader() throws FastInfosetException, IOException(Code)



decodeIdentifyingNonEmptyStringIndexOnFirstBitAsNamespaceName
final protected String decodeIdentifyingNonEmptyStringIndexOnFirstBitAsNamespaceName(boolean prefixPresent) throws FastInfosetException, IOException(Code)



decodeIdentifyingNonEmptyStringIndexOnFirstBitAsPrefix
final protected String decodeIdentifyingNonEmptyStringIndexOnFirstBitAsPrefix(boolean namespaceNamePresent) throws FastInfosetException, IOException(Code)



decodeIdentifyingNonEmptyStringOnFirstBit
final protected String decodeIdentifyingNonEmptyStringOnFirstBit(StringArray table) throws FastInfosetException, IOException(Code)



decodeIdentifyingNonEmptyStringOnFirstBitAsNamespaceName
final protected String decodeIdentifyingNonEmptyStringOnFirstBitAsNamespaceName(boolean prefixPresent) throws FastInfosetException, IOException(Code)



decodeIdentifyingNonEmptyStringOnFirstBitAsPrefix
final protected String decodeIdentifyingNonEmptyStringOnFirstBitAsPrefix(boolean namespaceNamePresent) throws FastInfosetException, IOException(Code)



decodeInitialVocabulary
final protected void decodeInitialVocabulary() throws FastInfosetException, IOException(Code)



decodeIntegerIndexOnSecondBit
final protected int decodeIntegerIndexOnSecondBit() throws FastInfosetException, IOException(Code)



decodeLiteralQualifiedName
final protected QualifiedName decodeLiteralQualifiedName(int state, QualifiedName q) throws FastInfosetException, IOException(Code)



decodeNonEmptyOctetStringLengthOnSecondBit
final protected void decodeNonEmptyOctetStringLengthOnSecondBit() throws FastInfosetException, IOException(Code)



decodeNonEmptyOctetStringOnSecondBitAsUtf8CharArray
final protected void decodeNonEmptyOctetStringOnSecondBitAsUtf8CharArray() throws FastInfosetException, IOException(Code)



decodeNonEmptyOctetStringOnSecondBitAsUtf8String
final protected String decodeNonEmptyOctetStringOnSecondBitAsUtf8String() throws FastInfosetException, IOException(Code)



decodeNonIdentifyingStringOnFirstBit
final protected int decodeNonIdentifyingStringOnFirstBit() throws FastInfosetException, IOException(Code)



decodeNotations
final protected void decodeNotations() throws FastInfosetException, IOException(Code)



decodeOctetsOnFifthBitOfNonIdentifyingStringOnFirstBit
final protected void decodeOctetsOnFifthBitOfNonIdentifyingStringOnFirstBit(int b) throws FastInfosetException, IOException(Code)



decodeOctetsOnSeventhBitOfNonIdentifyingStringOnThirdBit
final protected void decodeOctetsOnSeventhBitOfNonIdentifyingStringOnThirdBit(int b) throws FastInfosetException, IOException(Code)



decodeRAOctetsAsString
final protected String decodeRAOctetsAsString(char[] restrictedAlphabet) throws FastInfosetException, IOException(Code)



decodeRestrictedAlphabetAsCharBuffer
final protected void decodeRestrictedAlphabetAsCharBuffer() throws FastInfosetException, IOException(Code)



decodeRestrictedAlphabetAsString
final protected String decodeRestrictedAlphabetAsString() throws FastInfosetException, IOException(Code)



decodeUnparsedEntities
final protected void decodeUnparsedEntities() throws FastInfosetException, IOException(Code)



decodeUtf16StringAsCharBuffer
final protected void decodeUtf16StringAsCharBuffer() throws IOException(Code)



decodeUtf16StringAsString
final protected String decodeUtf16StringAsString() throws IOException(Code)



decodeUtf8NCNameIntoCharBuffer
final protected void decodeUtf8NCNameIntoCharBuffer() throws IOException(Code)



decodeUtf8StringAsCharBuffer
final protected void decodeUtf8StringAsCharBuffer() throws IOException(Code)



decodeUtf8StringAsCharBuffer
final protected void decodeUtf8StringAsCharBuffer(char[] ch, int offset) throws IOException(Code)



decodeUtf8StringAsString
final protected String decodeUtf8StringAsString() throws IOException(Code)



decodeUtf8StringIntoCharBuffer
final protected void decodeUtf8StringIntoCharBuffer() throws IOException(Code)



decodeUtf8StringIntoCharBuffer
final protected void decodeUtf8StringIntoCharBuffer(char[] ch, int offset) throws IOException(Code)



decodeVersion
final protected String decodeVersion() throws FastInfosetException, IOException(Code)



getBufferSize
public int getBufferSize()(Code)



getExternalVocabularies
public Map getExternalVocabularies()(Code)



getForceStreamClose
public boolean getForceStreamClose()(Code)



getParseFragments
public boolean getParseFragments()(Code)



getRegisteredEncodingAlgorithms
public Map getRegisteredEncodingAlgorithms()(Code)



getStringInterning
public boolean getStringInterning()(Code)



isFastInfosetDocument
public static boolean isFastInfosetDocument(InputStream s) throws IOException(Code)



peek
final protected int peek() throws IOException(Code)



peek
final protected int peek(OctetBufferListener octetBufferListener) throws IOException(Code)



peek2
final protected int peek2(OctetBufferListener octetBufferListener) throws IOException(Code)



read
final protected int read() throws IOException(Code)



reset
public void reset()(Code)
Reset the decoder for reuse decoding another XML infoset.



setBufferSize
public void setBufferSize(int bufferSize)(Code)



setExternalVocabularies
public void setExternalVocabularies(Map referencedVocabualries)(Code)



setForceStreamClose
public void setForceStreamClose(boolean needForceStreamClose)(Code)



setInputStream
public void setInputStream(InputStream s)(Code)
Set the InputStream to decode the fast infoset document.
Parameters:
  s - the InputStream where the fast infoset document is decoded from.



setParseFragments
public void setParseFragments(boolean parseFragments)(Code)



setRegisteredEncodingAlgorithms
public void setRegisteredEncodingAlgorithms(Map algorithms)(Code)



setStringInterning
public void setStringInterning(boolean stringInterning)(Code)



setVocabulary
public void setVocabulary(ParserVocabulary v)(Code)
Set the ParserVocabulary to be used for decoding.
Parameters:
  v - the vocabulary to be used for decoding.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.