Code example for DeflaterOutputStream

0
      throw new NullPointerException();
    } 
 
    this.item = item;
    this.outputStream = new ByteArrayOutputStream();
    this.deflaterOutputStream = new DeflaterOutputStream(outputStream);
    this.crc32 = new CRC32();
    this.size = 0;
  } 
 
  public void write(final int b)
      throws IOException 
  { 
    if (closed)
    { 
      throw new IOException("Already closed");
    } 
    deflaterOutputStream.write(b);
    crc32.update(b);
    size += 1;
Contextual code suggestions in your IDE  Get Codota for Java