Class ValuesOnlyLDAPResultWriter
- java.lang.Object
-
- com.unboundid.ldap.sdk.unboundidds.tools.LDAPResultWriter
-
- com.unboundid.ldap.sdk.unboundidds.tools.ValuesOnlyLDAPResultWriter
-
@ThreadSafety(level=NOT_THREADSAFE) public final class ValuesOnlyLDAPResultWriter extends LDAPResultWriter
This class provides anLDAPResultWriterinstance that simply prints the values of all attributes in the entries that are returned, with each value on a line by itself. Entry DNs will not be included, and there will not be any blank lines between entries.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundiddspackage structure, are only supported for use against Ping Identity, UnboundID, and Nokia/Alcatel-Lucent 8661 server products. These classes provide support for proprietary functionality or for external specifications that are not considered stable or mature enough to be guaranteed to work in an interoperable way with other types of LDAP servers.
-
-
Constructor Summary
Constructors Constructor Description ValuesOnlyLDAPResultWriter(java.io.OutputStream outputStream)Creates a new instance of this LDAP result writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteComment(java.lang.String comment)Writes the provided comment to the output.voidwriteHeader()Formats and writes a header that describes the way in which the data will be formatted.voidwriteResult(LDAPResult result)Formats and writes the provided LDAP result.voidwriteSearchResultEntry(SearchResultEntry entry)Formats and writes the provided search result entry.voidwriteSearchResultReference(SearchResultReference ref)Formats and writes the provided search result reference.voidwriteUnsolicitedNotification(LDAPConnection connection, ExtendedResult notification)Formats and writes the provided unsolicited notification.-
Methods inherited from class com.unboundid.ldap.sdk.unboundidds.tools.LDAPResultWriter
flush, getPrintStream, print, println, println, updateOutputStream
-
-
-
-
Constructor Detail
-
ValuesOnlyLDAPResultWriter
public ValuesOnlyLDAPResultWriter(@NotNull java.io.OutputStream outputStream)
Creates a new instance of this LDAP result writer.- Parameters:
outputStream- The output stream to which the output will be written.
-
-
Method Detail
-
writeComment
public void writeComment(@NotNull java.lang.String comment)
Writes the provided comment to the output.- Specified by:
writeCommentin classLDAPResultWriter- Parameters:
comment- The comment to be written. It must not benull.
-
writeHeader
public void writeHeader()
Formats and writes a header that describes the way in which the data will be formatted. This will be displayed at the beginning of the output (including at the beginning of each file, if output should be spread across multiple files).- Specified by:
writeHeaderin classLDAPResultWriter
-
writeSearchResultEntry
public void writeSearchResultEntry(@NotNull SearchResultEntry entry)
Formats and writes the provided search result entry.- Specified by:
writeSearchResultEntryin classLDAPResultWriter- Parameters:
entry- The search result entry to be processed.
-
writeSearchResultReference
public void writeSearchResultReference(@NotNull SearchResultReference ref)
Formats and writes the provided search result reference.- Specified by:
writeSearchResultReferencein classLDAPResultWriter- Parameters:
ref- The search result reference to be processed.
-
writeResult
public void writeResult(@NotNull LDAPResult result)
Formats and writes the provided LDAP result.- Specified by:
writeResultin classLDAPResultWriter- Parameters:
result- The LDAP result to be processed. It may or may not be a search result.
-
writeUnsolicitedNotification
public void writeUnsolicitedNotification(@NotNull LDAPConnection connection, @NotNull ExtendedResult notification)
Formats and writes the provided unsolicited notification.- Specified by:
writeUnsolicitedNotificationin classLDAPResultWriter- Parameters:
connection- The connection on which the unsolicited notification was received.notification- The unsolicited notification that was received.
-
-