public class ServerEntrySerializer extends Object implements Serializer
| Constructor and Description |
|---|
ServerEntrySerializer(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Creates a new instance of ServerEntrySerializer.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(byte[] bytes)
Deserialize a ServerEntry.
|
byte[] |
serialize(Object object)
This is the place where we serialize entries, and all theirs
elements.
|
public ServerEntrySerializer(org.apache.directory.shared.ldap.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 :
NOTE :This should be unnecessary, as the DN should always exists
serialize in interface Serializerobject - Object to serializeIOExceptionpublic Object deserialize(byte[] bytes) throws IOException
deserialize in interface Serializerbytes - the byte array containing the serialized entryIOException - if we can't deserialize the ServerEntryCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.