Class DeflaterReader

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class DeflaterReader
    extends InputStream
    A DeflaterReader The reader takes an inputstream and compress it. Not for concurrent use.
    • Method Detail

      • read

        public int read​(byte[] buffer,
                        int offset,
                        int len)
                 throws IOException
        Try to fill the buffer with compressed bytes. Except the last effective read, this method always returns with a full buffer of compressed data.
        Overrides:
        read in class InputStream
        Parameters:
        buffer - the buffer to fill compressed bytes
        Returns:
        the number of bytes really filled, -1 indicates end.
        Throws:
        IOException
      • getTotalSize

        public long getTotalSize()