org.ldaptive.io
Class ObjectValueTranscoder

java.lang.Object
  extended by org.ldaptive.io.ObjectValueTranscoder
All Implemented Interfaces:
ValueTranscoder<Object>

public class ObjectValueTranscoder
extends Object
implements ValueTranscoder<Object>

Decodes and encodes an object for use in an ldap attribute value.

Version:
$Revision: 2886 $ $Date: 2014-02-26 12:21:59 -0500 (Wed, 26 Feb 2014) $
Author:
Middleware Services

Constructor Summary
ObjectValueTranscoder()
           
 
Method Summary
 Object decodeBinaryValue(byte[] value)
          Decodes the supplied ldap attribute value into a custom type.
 Object 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.
 String encodeStringValue(Object value)
          Encodes the supplied value into an ldap attribute value.
 Class<Object> 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
 

Constructor Detail

ObjectValueTranscoder

public ObjectValueTranscoder()
Method Detail

decodeStringValue

public Object decodeStringValue(String value)
Decodes the supplied ldap attribute value into a custom type.

Specified by:
decodeStringValue in interface ValueTranscoder<Object>
Parameters:
value - to decode
Returns:
decoded value

decodeBinaryValue

public Object decodeBinaryValue(byte[] value)
Decodes the supplied ldap attribute value into a custom type.

Specified by:
decodeBinaryValue in interface ValueTranscoder<Object>
Parameters:
value - to decode
Returns:
decoded value

encodeStringValue

public String encodeStringValue(Object value)
Encodes the supplied value into an ldap attribute value.

Specified by:
encodeStringValue in interface ValueTranscoder<Object>
Parameters:
value - to encode
Returns:
encoded value

encodeBinaryValue

public byte[] encodeBinaryValue(Object value)
Encodes the supplied value into an ldap attribute value.

Specified by:
encodeBinaryValue in interface ValueTranscoder<Object>
Parameters:
value - to encode
Returns:
encoded value

getType

public Class<Object> getType()
Returns the type produced by this value transcoder.

Specified by:
getType in interface ValueTranscoder<Object>
Returns:
type produced by this value transcoder


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.