5.4 Supplements to Default DSML Serialization

LDAP Libraries for Java also supports APIs that write and read runtime objects of LDAP classes, although this is strictly not using the Java serialization protocol neither customizing its implementation.

This support is an alternative to the support provided by java.beans.XMLEncoder or XMLDecoder in Java. In fact our support is one step ahead as provided by Java XMLEncoder or XMLDecoder. Java XMLEncoder or XMLDecoder stores XML data that pertain to some schema (may be Java Bean specific schema) which is not needed for LDAP classes.

Our implementation stores the data in complete (100% XML structure with no class header and serialization demarcation bytes) DSML format.

The following two methods support this feature in LDAP Libraries for Java as listed in Section 5.2, Classes:

Client applications need to call these methods explicitly for storing the data and read from streams.