public class SortedEntrySerializer extends Object implements jdbm.helper.Serializer
| Constructor and Description |
|---|
SortedEntrySerializer()
Creates a new instance of ServerEntrySerializer.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(byte[] serialized) |
byte[] |
serialize(org.apache.directory.api.ldap.model.entry.Entry entry)
This is the place where we serialize entries, and all theirs
elements.
|
byte[] |
serialize(Object obj) |
static void |
setSchemaManager(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager) |
public SortedEntrySerializer()
setSchemaManager(SchemaManager)public byte[] serialize(Object obj) throws IOException
serialize in interface jdbm.helper.SerializerIOExceptionpublic Object deserialize(byte[] serialized) throws IOException
deserialize in interface jdbm.helper.SerializerIOExceptionpublic byte[] serialize(org.apache.directory.api.ldap.model.entry.Entry entry)
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 :
public static void setSchemaManager(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Copyright © 2021. All rights reserved.