Class GZIPOutputStream

All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class GZIPOutputStream extends DeflaterOutputStream
This filter stream is used to compress a stream into a "GZIP" stream. The "GZIP" format is described in RFC 1952.
Since:
JDK 1.1
  • Field Details

    • crc

      protected CRC32 crc
      CRC-32 value for uncompressed data
  • Constructor Details

    • GZIPOutputStream

      public GZIPOutputStream(OutputStream out) throws IOException
      Throws:
      IOException
    • GZIPOutputStream

      public GZIPOutputStream(OutputStream out, int size) throws IOException
      Creates a GZIPOutputStream with the specified buffer size
      Parameters:
      out - The stream to read compressed data from
      size - Size of the buffer to use
      Throws:
      IOException
  • Method Details