public int read() throws IOException, LogException {
  if (length < 1)   badRead(1);
  length--;
  return in.read();
}

public int read ( ) throws IOException , LogException { if ( length < 1 ) badRead ( 1 ) ; length -- ; return in . read ( ) ; }
reads a byte of data . this method will block if no input is available .
