void () { int eolStart = myIndex; boolean nFound = false; boolean rFound = false; while (notAtEnd()) { boolean n = charAt(myIndex) == '\n'; boolean r = charAt(myIndex) == '\r'; if (!n && !r) { break; } if ((nFound && n) || (rFound && r)) { break; } nFound |= n; rFound |= r; myIndex++; } if (myLineSeparatorStart == -1) { myLineSeparatorStart = eolStart; myLineSeparatorEnd = myIndex; } }