public int read() throws IOException {
        if (eof) {
            return -1;
        }
        int b = is.read();
        data = data << 8 | b;
        eof = (b == -1 || data == 0x0d0a0d0a || (data & 0xffff) == 0x0a0a);
        return b;
    }