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, waitMethods inherited from interface org.ldaptive.transcode.ValueTranscoder
decoder, encoder
-
Constructor Details
-
ObjectValueTranscoder
public ObjectValueTranscoder()
-
-
Method Details
-
decodeStringValue
Description copied from interface:ValueTranscoderDecodes the supplied ldap attribute value into a custom type.- Specified by:
decodeStringValuein interfaceValueTranscoder<Object>- Parameters:
value- to decode- Returns:
- decoded value
-
decodeBinaryValue
Description copied from interface:ValueTranscoderDecodes the supplied ldap attribute value into a custom type.- Specified by:
decodeBinaryValuein interfaceValueTranscoder<Object>- Parameters:
value- to decode- Returns:
- decoded value
-
encodeStringValue
Description copied from interface:ValueTranscoderEncodes the supplied value into an ldap attribute value.- Specified by:
encodeStringValuein interfaceValueTranscoder<Object>- Parameters:
value- to encode- Returns:
- encoded value
-
encodeBinaryValue
Description copied from interface:ValueTranscoderEncodes the supplied value into an ldap attribute value.- Specified by:
encodeBinaryValuein interfaceValueTranscoder<Object>- Parameters:
value- to encode- Returns:
- encoded value
-
getType
Description copied from interface:ValueTranscoderReturns the type produced by this value transcoder.- Specified by:
getTypein interfaceValueTranscoder<Object>- Returns:
- type produced by this value transcoder
-