code: private boolean finishLine(boolean sawNewline) throws IOException {
      handleLine(line.toString(), sawReturn
          ? (sawNewline ? "\r\n" : "\r")
          : (sawNewline ? "\n" : ""));
      line = new StringBuilder();
      sawReturn = false;
      return sawNewline;
    }
docs: Called when a line is complete.