Code example for DeflaterOutputStream

Methods: write

0
  { 
    if (closed)
    { 
      throw new IOException("Already closed");
    } 
    deflaterOutputStream.write(b);
    crc32.update(b);
    size += b.length;
  } 
 
  public void flush() 
      throws IOException 
  { 
    if (closed)
    { 
      throw new IOException("Already closed");
    } 
    deflaterOutputStream.flush();
  } 
}