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