opendap/src/main/java/opendap/servlet/DummySink.java
public void write(byte[] b, int off, int len) throws IOException {

        count += len;
        super.write(b, off, len);

    }
public void write(byte[] b, int off, int len) throws IOException {

        count += len;
        super.write(b, off, len);

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

@param off the start offset of the data
@param len the length of the data
@throws IOException if an I/O error has occurred
Writes an array of bytes to the compressed output stream . This method will block until all the bytes are written .