public class DnSerializer
extends java.lang.Object
implements jdbm.helper.Serializer
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG
the logger for this class
|
private org.apache.directory.api.ldap.model.schema.SchemaManager |
schemaManager
The schemaManager reference
|
private static long |
serialVersionUID
The serialVersionUID
|
| Constructor and Description |
|---|
DnSerializer(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a new instance of DnSerializer.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(byte[] bytes)
Deserialize a Dn.
|
byte[] |
serialize(java.lang.Object object)
This is the place where we serialize Dn
|
private static final long serialVersionUID
private static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
private transient org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager
public DnSerializer(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
schemaManager - The reference to the global schemaManagerpublic byte[] serialize(java.lang.Object object)
throws java.io.IOException
This is the place where we serialize Dn
serialize in interface jdbm.helper.Serializerjava.io.IOExceptionpublic java.lang.Object deserialize(byte[] bytes)
throws java.io.IOException
deserialize in interface jdbm.helper.Serializerbytes - the byte array containing the serialized Dnjava.io.IOException - if we can't deserialize the Dn