@Override public int read() throws IOException {
  checkReadPrimitiveTypes();
  return primitiveData.read();
}

@ Override public int read ( ) throws IOException { checkReadPrimitiveTypes ( ) ; return primitiveData . read ( ) ; }
reads a single byte from the source stream and returns it as an integer in the range from 0 to 255 . returns - 1 if the end of the source stream has been reached . blocks if no input is available .
