* @see java.io.InputStream#read()
*/
@Override
public int read() throws IOException {
if (!channel.isBlocking()) {
throw new IllegalBlockingModeException();
}
ByteBuffer buf = ByteBuffer.allocate(1);
int result = channel.read(buf);
return (-1 == result) ? result : buf.get() & 0xFF;
}