Class Decoder

  • All Implemented Interfaces:
    FastInfosetParser
    Direct Known Subclasses:
    StAXDocumentParser

    public abstract class Decoder
    extends Object
    implements FastInfosetParser
    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 InputStream is supported in a similar manner to a BufferedInputStream. Combining buffering with decoding enables better performance.

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