Package org.ldaptive.transcode
Class ObjectValueTranscoder
java.lang.Object
org.ldaptive.transcode.ObjectValueTranscoder
- All Implemented Interfaces:
ValueTranscoder<Object>
Decodes and encodes an object for use in an ldap attribute value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeBinaryValue
(byte[] value) Decodes the supplied ldap attribute value into a custom type.decodeStringValue
(String value) Decodes the supplied ldap attribute value into a custom type.byte[]
encodeBinaryValue
(Object value) Encodes the supplied value into an ldap attribute value.encodeStringValue
(Object value) Encodes the supplied value into an ldap attribute value.getType()
Returns the type produced by this value transcoder.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ldaptive.transcode.ValueTranscoder
decoder, encoder
-
Constructor Details
-
ObjectValueTranscoder
public ObjectValueTranscoder()
-
-
Method Details
-
decodeStringValue
Description copied from interface:ValueTranscoder
Decodes the supplied ldap attribute value into a custom type.- Specified by:
decodeStringValue
in interfaceValueTranscoder<Object>
- Parameters:
value
- to decode- Returns:
- decoded value
-
decodeBinaryValue
Description copied from interface:ValueTranscoder
Decodes the supplied ldap attribute value into a custom type.- Specified by:
decodeBinaryValue
in interfaceValueTranscoder<Object>
- Parameters:
value
- to decode- Returns:
- decoded value
-
encodeStringValue
Description copied from interface:ValueTranscoder
Encodes the supplied value into an ldap attribute value.- Specified by:
encodeStringValue
in interfaceValueTranscoder<Object>
- Parameters:
value
- to encode- Returns:
- encoded value
-
encodeBinaryValue
Description copied from interface:ValueTranscoder
Encodes the supplied value into an ldap attribute value.- Specified by:
encodeBinaryValue
in interfaceValueTranscoder<Object>
- Parameters:
value
- to encode- Returns:
- encoded value
-
getType
Description copied from interface:ValueTranscoder
Returns the type produced by this value transcoder.- Specified by:
getType
in interfaceValueTranscoder<Object>
- Returns:
- type produced by this value transcoder
-