Code example for DeflaterOutputStream

Methods: write

0
  { 
    if (closed)
    { 
      throw new IOException("Already closed");
    } 
    deflaterOutputStream.write(b);
    crc32.update(b);
    size += 1;
  } 
 
  public void write(final byte[] b, final int off, final int len)
      throws IOException 
  { 
    if (closed)
    { 
      throw new IOException("Already closed");
    } 
    deflaterOutputStream.write(b, off, len);
    crc32.update(b, off, len);
    size += len;
  }