protected int read(){
  int curByte=0;
  try {
    curByte=(rawData.get() & 0xFF);
  }
 catch (  final Exception e) {
    status=STATUS_FORMAT_ERROR;
  }
  return curByte;
}

protected int read ( ) { int curByte = 0 ; try { curByte = ( rawData . get ( ) & 0xFF ) ; } catch ( final Exception e ) { status = STATUS_FORMAT_ERROR ; } return curByte ; }
reads a single byte from the input stream .
