public synchronized void write ( byte [ ] buf , int off , int len ) throws IOException { super . write ( buf , off , len ) ; crc . update ( buf , off , len ) ; }
Writes array of bytes to the compressed output stream . This method will block until all the bytes are written .