mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
10.49.2007 debf9356e93bc9df5a3de320b44360890d798660
Add an Entry.toLDIFString() method for convenience purposes.
1 files modified
20 ■■■■■ changed files
opends/src/server/org/opends/server/types/Entry.java 20 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/types/Entry.java
@@ -4917,6 +4917,26 @@
  /**
   * Retrieves a string representation of this entry in LDIF form.
   *
   * @return  A string representation of this entry in LDIF form.
   */
  public String toLDIFString()
  {
    StringBuilder buffer = new StringBuilder();
    for (StringBuilder ldifLine : toLDIF())
    {
      buffer.append(ldifLine);
      buffer.append(EOL);
    }
    return buffer.toString();
  }
  /**
   * Retrieves a one-line representation of this entry.
   *
   * @return  A one-line representation of this entry.