public void uncompress(){
  data.position(0);
  InflaterInputStream inflater=new InflaterInputStream(data.asInputStream());
  byte[] buffer=new byte[8192];
  IoBuffer tmp=IoBuffer.allocate(0);
  tmp.setAutoExpand(true);
  try {
    while (inflater.available() > 0) {
      int decompressed=inflater.read(buffer);
      if (decompressed <= 0) {
        break;
      }
      tmp.put(buffer,0,decompressed);
    }
  }
 catch (  IOException e) {
    tmp.free();
    throw new RuntimeException("could not uncompress data",e);
  }
 finally {
    if (inflater != null) {
      try {
        inflater.close();
      }
 catch (      IOException e1) {
      }
    }
  }
  data.free();
  data=tmp;
  data.flip();
  prepareIO();
}

public void uncompress ( ) { data . position ( 0 ) ; InflaterInputStream inflater = new InflaterInputStream ( data . asInputStream ( ) ) ; byte [ ] buffer = new byte [ 8192 ] ; IoBuffer tmp = IoBuffer . allocate ( 0 ) ; tmp . setAutoExpand ( true ) ; try { while ( inflater . available ( ) > 0 ) { int decompressed = inflater . read ( buffer ) ; if ( decompressed <= 0 ) { break ; } tmp . put ( buffer , 0 , decompressed ) ; } } catch ( IOException e ) { tmp . free ( ) ; throw new RuntimeException ( "could not uncompress data" , e ) ; } finally { if ( inflater != null ) { try { inflater . close ( ) ; } catch ( IOException e1 ) { } } } data . free ( ) ; data = tmp ; data . flip ( ) ; prepareIO ( ) ; }
decompress contents using zlib .
