public class LDAPReader extends Object implements Closeable
Constructor and Description |
---|
LDAPReader(Socket socket)
Creates a new LDAP reader that will read messages from the provided
socket and trace the messages using a provided tracer.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this LDAP reader and the underlying socket.
|
LDAPMessage |
readMessage()
Reads an LDAP message from the associated input stream.
|
public LDAPReader(Socket socket) throws IOException
socket
- The socket from which to read the LDAP messages.IOException
- If a problem occurs while attempting to obtain an
input stream for the socket.public LDAPMessage readMessage() throws IOException, org.forgerock.opendj.ldap.DecodeException, LDAPException
null
if the end of the stream has been reached.IOException
- If a problem occurs while attempting to read from the
input stream.org.forgerock.opendj.ldap.DecodeException
- If a problem occurs while attempting to decode the
data read as an ASN.1 sequence.LDAPException
- If a problem occurs while attempting to decode the
LDAP message.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.