Package org.ldaptive.transcode
Class AbstractStringValueTranscoder<T>
- java.lang.Object
-
- org.ldaptive.transcode.AbstractStringValueTranscoder<T>
-
- Type Parameters:
T
- type of object to transcode
- All Implemented Interfaces:
ValueTranscoder<T>
- Direct Known Subclasses:
AbstractPrimitiveValueTranscoder
,AbstractSchemaElementValueTranscoder
,CharArrayValueTranscoder
,DeltaTimeValueTranscoder
,FileTimeValueTranscoder
,GeneralizedTimeValueTranscoder
,StringValueTranscoder
,UUIDValueTranscoder
public abstract class AbstractStringValueTranscoder<T> extends Object implements ValueTranscoder<T>
Value transcoder which decodes and encodes to a String and therefore the binary methods simply delegate to the string methods.
-
-
Constructor Summary
Constructors Constructor Description AbstractStringValueTranscoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
decodeBinaryValue(byte[] value)
Decodes the supplied ldap attribute value into a custom type.byte[]
encodeBinaryValue(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
decoder, decodeStringValue, encoder, encodeStringValue, getType
-
-
-
-
Method Detail
-
decodeBinaryValue
public T decodeBinaryValue(byte[] value)
Description copied from interface:ValueTranscoder
Decodes the supplied ldap attribute value into a custom type.- Specified by:
decodeBinaryValue
in interfaceValueTranscoder<T>
- Parameters:
value
- to decode- Returns:
- decoded value
-
encodeBinaryValue
public byte[] encodeBinaryValue(T value)
Description copied from interface:ValueTranscoder
Encodes the supplied value into an ldap attribute value.- Specified by:
encodeBinaryValue
in interfaceValueTranscoder<T>
- Parameters:
value
- to encode- Returns:
- encoded value
-
-