protected int readBlock(){
  blockSize=read();
  int n=0;
  if (blockSize > 0) {
    try {
      int count;
      while (n < blockSize) {
        count=blockSize - n;
        rawData.get(block,n,count);
        n+=count;
      }
    }
 catch (    final Exception e) {
      Log.w(TAG,"Error Reading Block",e);
      status=STATUS_FORMAT_ERROR;
    }
  }
  return n;
}

protected int readBlock ( ) { blockSize = read ( ) ; int n = 0 ; if ( blockSize > 0 ) { try { int count ; while ( n < blockSize ) { count = blockSize - n ; rawData . get ( block , n , count ) ; n += count ; } } catch ( final Exception e ) { Log . w ( TAG , "Error Reading Block" , e ) ; status = STATUS_FORMAT_ERROR ; } } return n ; }
reads next variable length block from input .
