/** * Greedily accepts \n, \r and \r\n This checker consumes silently the second control-character... * * @return true if the given or next character is a line-terminator */ boolean readEndOfLine(int ch) throws IOException { // check if we have \r\n... if (ch == CR && in.lookAhead() == LF) { // note: does not change ch outside of this method! ch = in.read(); } return ch == LF || ch == CR; }
if (isQuoteChar(in.lookAhead())) {