Class LdifWriter

    • Field Detail

      • LINE_SEPARATOR

        private static final String LINE_SEPARATOR
        Line separator.
      • ldifWriter

        private final Writer ldifWriter
        Writer to write to.
    • Constructor Detail

      • LdifWriter

        public LdifWriter​(Writer writer)
        Creates a new ldif writer.
        Parameters:
        writer - to write LDIF to
    • Method Detail

      • createLdif

        protected String createLdif​(SearchResponse result)
        Creates an LDIF using the supplied search result.
        Parameters:
        result - search result
        Returns:
        LDIF
      • createLdifEntry

        protected String createLdifEntry​(LdapEntry entry)
        Creates an LDIF using the supplied ldap entry.
        Parameters:
        entry - ldap entry
        Returns:
        LDIF
      • createSearchReference

        protected String createSearchReference​(SearchResultReference ref)
        Creates an LDIF using the supplied search reference.
        Parameters:
        ref - search reference
        Returns:
        LDIF