public byte readByte() throws IOException {
  byte v=dataInput.readByte();
  offset+=1;
  available-=1;
  return v;
}

public byte readByte ( ) throws IOException { byte v = dataInput . readByte ( ) ; offset += 1 ; available -= 1 ; return v ; }
reads a single byte .
