/**
  * Reads one byte, and returns cast as an int.
  *
  * @return one byte from the underlying channel
  * @throws IOException
  */
 public int read() throws IOException {
   return channel.read();
 }