public class LdifWriter extends Object implements SearchResultWriter
SearchResult as LDIF to a Writer.| Constructor and Description |
|---|
LdifWriter(Writer writer)
Creates a new ldif writer.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
createLdif(SearchResult result)
Creates an LDIF using the supplied search result.
|
protected String |
createLdifEntry(LdapEntry entry)
Creates an LDIF using the supplied ldap entry.
|
protected String |
createSearchReference(SearchReference ref)
Creates an LDIF using the supplied search reference.
|
void |
write(SearchResult result)
Writes the supplied search result to the writer.
|
public LdifWriter(Writer writer)
writer - to write LDIF topublic void write(SearchResult result) throws IOException
write in interface SearchResultWriterresult - search result to writeIOException - if an error occurs using the writerprotected String createLdif(SearchResult result)
result - search resultprotected String createLdifEntry(LdapEntry entry)
entry - ldap entryprotected String createSearchReference(SearchReference ref)
ref - search referenceCopyright © 2023. All rights reserved.