public class EntrySerializer extends Object implements jdbm.helper.Serializer
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 |
---|---|
Object |
deserialize(byte[] bytes)
Deserialize a Entry.
|
byte[] |
serialize(Object object)
This is the place where we serialize entries, and all theirs
elements.
|
public EntrySerializer(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
schemaManager
- The reference to the global schemaManagerpublic byte[] serialize(Object object) throws 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.Serializer
IOException
public Object deserialize(byte[] bytes) throws IOException
deserialize
in interface jdbm.helper.Serializer
bytes
- the byte array containing the serialized entryIOException
- if we can't deserialize the EntryCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.