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
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