return r <= 0 ? -1 : (int)(buf[0] & 0xFF);
return r < 0 ? -1 : (int)(buf[0] & 0xFF);
    public int read() throws IOException {        //return myFileStream.read();        byte[] buf = new byte[1];        int r = myChannel.read(ByteBuffer.wrap(buf));        return r <= 0 ? -1 : (int)(buf[0] & 0xFF);    }