Package org.ldaptive.transcode
Class AbstractBinaryValueTranscoder<T>
java.lang.Object
org.ldaptive.transcode.AbstractBinaryValueTranscoder<T>
- Type Parameters:
T
- type of object to transcode
- All Implemented Interfaces:
ValueTranscoder<T>
- Direct Known Subclasses:
ByteArrayValueTranscoder
,UnicodePwdValueTranscoder
Value transcoder which decodes and encodes to a byte array and therefore the string methods simply delegate to the
binary methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeStringValue
(String value) Decodes the supplied ldap attribute value into a custom type.encodeStringValue
(T value) Encodes the supplied value into an ldap attribute value.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
decodeBinaryValue, decoder, encodeBinaryValue, encoder, getType
-
Constructor Details
-
AbstractBinaryValueTranscoder
public AbstractBinaryValueTranscoder()
-
-
Method Details
-
decodeStringValue
Description copied from interface:ValueTranscoder
Decodes the supplied ldap attribute value into a custom type.- Specified by:
decodeStringValue
in interfaceValueTranscoder<T>
- 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<T>
- Parameters:
value
- to encode- Returns:
- encoded value
-