org.ldaptive.io
Class AbstractBinaryValueTranscoder<T>
java.lang.Object
org.ldaptive.io.AbstractBinaryValueTranscoder<T>
- Type Parameters:
T - type of object to transcode
- All Implemented Interfaces:
- ValueTranscoder<T>
- Direct Known Subclasses:
- ByteArrayValueTranscoder, UnicodePwdValueTranscoder
public abstract class AbstractBinaryValueTranscoder<T>
- extends Object
- implements ValueTranscoder<T>
Value transcoder which decodes and encodes to a byte array and therefore the
string methods simply delegate to the binary methods.
- Version:
- $Revision: 2998 $ $Date: 2014-06-11 13:28:09 -0400 (Wed, 11 Jun 2014) $
- Author:
- Middleware Services
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBinaryValueTranscoder
public AbstractBinaryValueTranscoder()
decodeStringValue
public T decodeStringValue(String value)
- Decodes the supplied ldap attribute value into a custom type.
- Specified by:
decodeStringValue in interface ValueTranscoder<T>
- Parameters:
value - to decode
- Returns:
- decoded value
encodeStringValue
public String encodeStringValue(T value)
- Encodes the supplied value into an ldap attribute value.
- Specified by:
encodeStringValue in interface ValueTranscoder<T>
- Parameters:
value - to encode
- Returns:
- encoded value
Copyright © 2003-2015 Virginia Tech. All Rights Reserved.