public String toString() {
    StringBuilder buffer = new StringBuilder();
    if (userFormat.lineSeparator != null) {
      for (int i = 0; i < userFormat.lineSeparator.length(); i++) {
        char ch = userFormat.lineSeparator.charAt(i);
        switch (ch) {
          case '\r':
            buffer.append("\\r");
            break;
          case '\n':
            buffer.append("\\n");
            break;
          case '\t':
            buffer.append("\\t");
            break;
          default:
            buffer.append("[").append((int)ch).append("]");
            break;
        }
      }
    }
    else {
      buffer.append("null");
    }

    return (
      "XMLOutputter[omitDeclaration = " + userFormat.omitDeclaration + ", " +
      "encoding = " + userFormat.encoding + ", " +
      "omitEncoding = " + userFormat.omitEncoding + ", " +
      "indent = '" + userFormat.indent + "'" + ", " +
      "expandEmptyElements = " + userFormat.expandEmptyElements + ", " +
      "lineSeparator = '" + buffer + "', " +
      "textMode = " + userFormat.mode + "]"
    );
  }
public String toString()