public int readWP() throws IOException {
        int i = read();
        if (i == -1) {
            throw new EOFException();
        }
        return i;
    }
Reads a byte

@return byte read
@throws IOException if not enough bytes remain
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/wordperfect/WPInputStream.java