public int readWPShort() throws IOException {
        int ch1 = in.read();
        int ch2 = in.read();
        if ((ch1 | ch2) < 0) {
            throw new EOFException();
        }
        return (ch2 << 8) + ch1;
    }
Reads a WordPerfect "short": a 2 bytes (16-bit) unsigned value in
reverse order.

@return an integer value
@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