Class InflaterInputStream

All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
GZIPInputStream, ZipInputStream

public class InflaterInputStream extends FilterInputStream
This filter stream is used to decompress data compressed in the "deflate" format. The "deflate" format is described in RFC 1951. This stream may form the basis for other decompression filters, such as the GZIPInputStream.
Since:
1.1
  • Field Details

    • inf

      protected Inflater inf
      Decompressor for this filter
    • buf

      protected byte[] buf
      Byte array used as a buffer
    • len

      protected int len
      Size of buffer
    • onebytebuffer

      private final byte[] onebytebuffer
  • Constructor Details

    • InflaterInputStream

      public InflaterInputStream(InputStream in)
      Create an InflaterInputStream with the default decompresseor and a default buffer size.
      Parameters:
      in - the InputStream to read bytes from
    • InflaterInputStream

      public InflaterInputStream(InputStream in, Inflater inf)
      Create an InflaterInputStream with the specified decompresseor and a default buffer size.
      Parameters:
      in - the InputStream to read bytes from
      inf - the decompressor used to decompress data read from in
    • InflaterInputStream

      public InflaterInputStream(InputStream in, Inflater inf, int size)
      Create an InflaterInputStream with the specified decompresseor and a specified buffer size.
      Parameters:
      in - the InputStream to read bytes from
      inf - the decompressor used to decompress data read from in
      size - size of the buffer to use
  • Method Details