@InternalUseOnly @NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public abstract class LDAPResultWriter extends java.lang.Object
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package 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.
Modifier | Constructor and Description |
---|---|
protected |
LDAPResultWriter(java.io.OutputStream outputStream)
Creates a new LDAP result writer that will write to the provided output
stream.
|
Modifier and Type | Method and Description |
---|---|
void |
flush()
Flushes any buffered output.
|
protected java.io.PrintStream |
getPrintStream()
Retrieves the print stream that may be used to write output.
|
protected void |
print(java.lang.String string)
Writes the provided string to the associated print stream without a
subsequent newline.
|
protected void |
println()
Writes a blank line to the associated print stream.
|
protected void |
println(java.lang.String string)
Writes the provided string to the associated print stream with a subsequent
newline.
|
void |
updateOutputStream(java.io.OutputStream outputStream)
Updates the output stream to which output will be written.
|
abstract void |
writeComment(java.lang.String comment)
Writes the provided comment to the output.
|
abstract void |
writeHeader()
Formats and writes a header that describes the way in which the data will
be formatted.
|
abstract void |
writeResult(LDAPResult result)
Formats and writes the provided LDAP result.
|
abstract void |
writeSearchResultEntry(SearchResultEntry entry)
Formats and writes the provided search result entry.
|
abstract void |
writeSearchResultReference(SearchResultReference ref)
Formats and writes the provided search result reference.
|
abstract void |
writeUnsolicitedNotification(LDAPConnection connection,
ExtendedResult notification)
Formats and writes the provided unsolicited notification.
|
protected LDAPResultWriter(@NotNull java.io.OutputStream outputStream)
outputStream
- The output stream to which the output will be
written. It must not be null
.public final void updateOutputStream(@NotNull java.io.OutputStream outputStream)
outputStream
- The output stream to which the output will be
written. It must not be null
.protected void println()
protected void print(@NotNull java.lang.String string)
string
- The string to be written. It must not be null
.protected void println(@NotNull java.lang.String string)
string
- The string to be written. It must not be null
.@NotNull protected final java.io.PrintStream getPrintStream()
public final void flush()
public abstract void writeComment(@NotNull java.lang.String comment)
comment
- The comment to be written. It must not be null
.public abstract void writeHeader()
public abstract void writeSearchResultEntry(@NotNull SearchResultEntry entry)
entry
- The search result entry to be processed.public abstract void writeSearchResultReference(@NotNull SearchResultReference ref)
ref
- The search result reference to be processed.public abstract void writeResult(@NotNull LDAPResult result)
result
- The LDAP result to be processed. It may or may not be a
search result.public abstract void writeUnsolicitedNotification(@NotNull LDAPConnection connection, @NotNull ExtendedResult notification)
connection
- The connection on which the unsolicited notification
was received.notification
- The unsolicited notification that was received.