protected boolean isEOL(int c) {
        return isLF(c) || isCR(c);
    }
This will tell if the next byte to be read is an end of line byte.

@param c The character to check against end of line
@return true if the next byte is 0x0A or 0x0D.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/updates/StartXRefScanner.java