public void compress(final ByteBuffer buf,final OutputStream os){
  if (true && buf.hasArray()) {
    final int off=buf.arrayOffset() + buf.position();
    final int len=buf.remaining();
    compress(buf.array(),off,len,os);
    buf.position(buf.limit());
    return;
  }
  throw new UnsupportedOperationException();
}

public void compress ( final ByteBuffer buf , final OutputStream os ) { if ( true && buf . hasArray ( ) ) { final int off = buf . arrayOffset ( ) + buf . position ( ) ; final int len = buf . remaining ( ) ; compress ( buf . array ( ) , off , len , os ) ; buf . position ( buf . limit ( ) ) ; return ; } throw new UnsupportedOperationException ( ) ; }
writes the buffer on the output stream .
