void compress(int page){
  ByteBuffer d=data[page];
synchronized (LZF) {
    int len=LZF.compress(d,0,BUFFER,0);
    d=ByteBuffer.allocateDirect(len);
    d.put(BUFFER,0,len);
    data[page]=d;
  }
}

void compress ( int page ) { ByteBuffer d = data [ page ] ; synchronized ( LZF ) { int len = LZF . compress ( d , 0 , BUFFER , 0 ) ; d = ByteBuffer . allocateDirect ( len ) ; d . put ( BUFFER , 0 , len ) ; data [ page ] = d ; } }
compress the data in a byte array .
