read method

int read()

Returns the next unsigned byte, or -1 on EOF

Implementation

int read() {
  if (isEOF()) {
    return -1;
  } else {
    return readUnsignedByte();
  }
}