private void writeEndMarker() throws IOException { // TODO: Flush incomplete chunk. out.write(0x00); }
public void write(byte[] buf, int off, int len) throws IOException { filterChain.write(buf, off, len); check.update(buf, off, len); uncompressedSize += len; validate(); }
private void writeChunk(byte[] buf, int off, int len) throws IOException { out.write(0x01); out.write((len - 1) >>> 8); out.write(len - 1); out.write(buf, off, len); }