Package org.forgerock.opendj.io
Class LDAPReader<R extends ASN1Reader>
java.lang.Object
org.forgerock.opendj.io.LDAPReader<R>
- Type Parameters:
R- The type of ASN.1 reader used for decoding elements.
Reads LDAP messages from an underlying ASN.1 reader.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the ASN.1 reader from which LDAP messages will be read.booleanReturnstrueif the next LDAP message can be read without blocking.voidreadMessage(LDAPMessageHandler handler) Reads the next LDAP message from the underlying ASN.1 reader.
-
Method Details
-
getASN1Reader
Returns the ASN.1 reader from which LDAP messages will be read.- Returns:
- The ASN.1 reader from which LDAP messages will be read.
-
hasMessageAvailable
Returnstrueif the next LDAP message can be read without blocking.- Returns:
trueif the next LDAP message can be read without blocking orfalseotherwise.- Throws:
DecodeException- If the available data was not a valid LDAP message.IOException- If an unexpected IO error occurred.
-
readMessage
Reads the next LDAP message from the underlying ASN.1 reader.- Parameters:
handler- The message handler which will handle the decoded LDAP message.- Throws:
DecodeException- If the available data was not a valid LDAP message.IOException- If an unexpected IO error occurred.
-