While most input/output operations in LDAP directories involves string data, it is sometimes convenient to have a mechanism for converting values into richer or more specific data types at the I/O level with the LDAP. In particular, binary data that is stored in the LDAP may be transparently converted to Java types.
The {@link ObjectIO} interface may be used by clients to inject custom type
conversion. An important feature of this package is that it uses {@link java.lang.Class}
objects to discriminate the type of values and it assumes that types
are compared within the same classloading context which means that
class objects are unique and may be compared by using ==
operator.