Class Decoder

  • Direct Known Subclasses:
    BrotliDecoderChannel

    public class Decoder
    extends java.lang.Object
    Base class for InputStream / Channel implementations.
    • Constructor Summary

      Constructors 
      Constructor Description
      Decoder​(java.nio.channels.ReadableByteChannel source, int inputBufferSize)
      Creates a Decoder wrapper.
    • Constructor Detail

      • Decoder

        public Decoder​(java.nio.channels.ReadableByteChannel source,
                       int inputBufferSize)
                throws java.io.IOException
        Creates a Decoder wrapper.
        Parameters:
        source - underlying source
        inputBufferSize - read buffer size
        Throws:
        java.io.IOException - If any failure during initialization
    • Method Detail

      • decompress

        public static DirectDecompress decompress​(byte[] data)
                                           throws java.io.IOException
        Decodes the given data buffer.
        Parameters:
        data - byte array of data to be decoded
        Returns:
        DirectDecompress instance
        Throws:
        java.io.IOException - If an error occurs during decoding
      • enableEagerOutput

        public void enableEagerOutput()