private boolean isEndOfLine ( int c ) throws IOException { // check if we have \r\n... if ( c == ' ' ) { if ( in . lookAhead ( ) == ' ' ) { // note: does not change c outside of this method !! c = in . read ( ) ; } } return ( c == ' ' ) ; }
Greedy - accepts \ n and \ r \ n This checker consumes silently the second control - character ...