public class EntrySerializer
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 |
|---|
EntrySerializer(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a new instance of ServerEntrySerializer.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
deserialize(byte[] bytes)
Deserialize a Entry.
|
byte[] |
serialize(java.lang.Object object)
This is the place where we serialize entries, and all theirs
elements.
|
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 EntrySerializer(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 entries, and all theirs
elements. the reason why we don't call the underlying methods
(ServerAttribute.write(), Value.write()) is that we need
access to the registries to read back the values.
The structure used to store the entry is the following :
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 entryjava.io.IOException - if we can't deserialize the Entry