public class DnSerializer
extends org.apache.directory.mavibot.btree.serializer.AbstractElementSerializer<org.apache.directory.api.ldap.model.name.Dn>
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Comparator<org.apache.directory.api.ldap.model.name.Dn> |
comp |
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG
the logger for this class
|
private static long |
serialVersionUID
The serialVersionUID
|
| Constructor and Description |
|---|
DnSerializer()
Creates a new instance of DnSerializer.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.api.ldap.model.name.Dn |
deserialize(org.apache.directory.mavibot.btree.serializer.BufferHandler bufferHandler) |
org.apache.directory.api.ldap.model.name.Dn |
deserialize(java.nio.ByteBuffer buffer)
Deserialize a Dn.
|
org.apache.directory.api.ldap.model.name.Dn |
fromBytes(byte[] buffer) |
org.apache.directory.api.ldap.model.name.Dn |
fromBytes(byte[] buffer,
int pos) |
java.lang.Class<?> |
getType() |
byte[] |
serialize(org.apache.directory.api.ldap.model.name.Dn dn)
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 static java.util.Comparator<org.apache.directory.api.ldap.model.name.Dn> comp
public DnSerializer()
schemaManager - The reference to the global schemaManagerpublic byte[] serialize(org.apache.directory.api.ldap.model.name.Dn dn)
This is the place where we serialize Dn
public org.apache.directory.api.ldap.model.name.Dn deserialize(java.nio.ByteBuffer buffer)
throws java.io.IOException
bytes - the byte array containing the serialized Dnjava.io.IOException - if we can't deserialize the Dnpublic org.apache.directory.api.ldap.model.name.Dn deserialize(org.apache.directory.mavibot.btree.serializer.BufferHandler bufferHandler)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.directory.api.ldap.model.name.Dn fromBytes(byte[] buffer)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.directory.api.ldap.model.name.Dn fromBytes(byte[] buffer,
int pos)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Class<?> getType()
getType in interface org.apache.directory.mavibot.btree.serializer.ElementSerializer<org.apache.directory.api.ldap.model.name.Dn>getType in class org.apache.directory.mavibot.btree.serializer.AbstractElementSerializer<org.apache.directory.api.ldap.model.name.Dn>