/** * Appends an LDIF-formatted string representation of this entry to the * provided buffer. No wrapping will be performed, and no extra blank lines * will be added. * * @param buffer The buffer to which to append the LDIF representation of * this entry. */ public final void toLDIFString(final StringBuilder buffer) { toLDIFString(buffer, 0); }
/** * Appends an LDIF-formatted string representation of this entry to the * provided buffer. No wrapping will be performed, and no extra blank lines * will be added. * * @param buffer The buffer to which to append the LDIF representation of * this entry. */ public final void toLDIFString(final StringBuilder buffer) { toLDIFString(buffer, 0); }
/** * Formats an LDAP directory entry as an LDIF string. * * <p>Format: * * <pre> * dn: entry-DN * attribute-name-1: value-1 * attribute-name-1: value-2 * attribute-name-1: value-n * ... * attribute-name-2: value-1 * ... * </pre> * * @param entry The directory entry. * * @return An LDIF string representing the directory entry. */ public static String formatEntry(final Entry entry) { return entry.toLDIFString(); }
/** * Retrieves an LDIF-formatted string representation of this entry. No * wrapping will be performed, and no extra blank lines will be added. * * @return An LDIF-formatted string representation of this entry. */ public final String toLDIFString() { final StringBuilder buffer = new StringBuilder(); toLDIFString(buffer, 0); return buffer.toString(); }
/** * Retrieves an LDIF-formatted string representation of this entry. No * wrapping will be performed, and no extra blank lines will be added. * * @return An LDIF-formatted string representation of this entry. */ public final String toLDIFString() { final StringBuilder buffer = new StringBuilder(); toLDIFString(buffer, 0); return buffer.toString(); }
/** * Retrieves an LDIF-formatted string representation of this entry. No * extra blank lines will be added. * * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. * * @return An LDIF-formatted string representation of this entry. */ public final String toLDIFString(final int wrapColumn) { final StringBuilder buffer = new StringBuilder(); toLDIFString(buffer, wrapColumn); return buffer.toString(); }
/** * Retrieves an LDIF-formatted string representation of this entry. No * extra blank lines will be added. * * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. * * @return An LDIF-formatted string representation of this entry. */ public final String toLDIFString(final int wrapColumn) { final StringBuilder buffer = new StringBuilder(); toLDIFString(buffer, wrapColumn); return buffer.toString(); }
/** * Appends an LDIF-formatted string representation of this entry to the * provided buffer. No extra blank lines will be added. * * @param buffer The buffer to which to append the LDIF representation * of this entry. * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. */ public void toLDIFString(final StringBuilder buffer, final int wrapColumn) { toEntry().toLDIFString(buffer, wrapColumn); }
/** * Appends an LDIF-formatted string representation of this entry to the * provided buffer. No extra blank lines will be added. * * @param buffer The buffer to which to append the LDIF representation * of this entry. * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. */ public void toLDIFString(final StringBuilder buffer, final int wrapColumn) { toEntry().toLDIFString(buffer, wrapColumn); }