|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.api.CompressedSchema
org.opends.server.core.DefaultCompressedSchema
public final class DefaultCompressedSchema
This class provides a default implementation of a compressed schema manager that will store the schema definitions in a binary file (config/schematokens.dat).
Constructor Summary | |
---|---|
DefaultCompressedSchema()
Creates a new instance of this compressed schema manager. |
Method Summary | |
---|---|
Attribute |
decodeAttribute(byte[] encodedEntry,
int startPos,
int length)
Decodes the contents of the provided array as an attribute. |
java.util.Map<ObjectClass,java.lang.String> |
decodeObjectClasses(byte[] encodedObjectClasses)
Decodes an object class set from the provided byte array. |
byte[] |
encodeAttribute(Attribute attribute)
Encodes the information in the provided attribute to a byte array. |
byte[] |
encodeObjectClasses(java.util.Map<ObjectClass,java.lang.String> objectClasses)
Encodes the provided set of object classes to a byte array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCompressedSchema()
Method Detail |
---|
public byte[] encodeObjectClasses(java.util.Map<ObjectClass,java.lang.String> objectClasses) throws DirectoryException
encodeObjectClasses
in class CompressedSchema
objectClasses
- The set of object classes for which to
retrieve the corresponding byte array
token.
DirectoryException
- If a problem occurs while attempting
to determine the appropriate
identifier.public java.util.Map<ObjectClass,java.lang.String> decodeObjectClasses(byte[] encodedObjectClasses) throws DirectoryException
decodeObjectClasses
in class CompressedSchema
encodedObjectClasses
- The byte array containing the
object class set identifier.
DirectoryException
- If the provided byte array cannot be
decoded as an object class set.public byte[] encodeAttribute(Attribute attribute) throws DirectoryException
encodeAttribute
in class CompressedSchema
attribute
- The attribute to be encoded.
DirectoryException
- If a problem occurs while attempting
to determine the appropriate
identifier.public Attribute decodeAttribute(byte[] encodedEntry, int startPos, int length) throws DirectoryException
decodeAttribute
in class CompressedSchema
encodedEntry
- The byte array containing the encoded
entry.startPos
- The position within the array of the first
byte for the attribute to decode.length
- The number of bytes contained in the
encoded attribute.
DirectoryException
- If the attribute could not be
decoded properly for some reason.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |