Class LdifWriter

    • Constructor Summary

      Constructors 
      Constructor Description
      LdifWriter​(java.io.Writer writer)
      Creates a new ldif writer.
    • Constructor Detail

      • LdifWriter

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

      • write

        public void write​(SearchResponse result)
                   throws java.io.IOException
        Writes the supplied search result to the writer.
        Specified by:
        write in interface SearchResultWriter
        Parameters:
        result - search result to write
        Throws:
        java.io.IOException - if an error occurs using the writer
      • createLdif

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

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

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