public class ObjectValueTranscoder extends Object implements ValueTranscoder<Object>
Constructor and Description |
---|
ObjectValueTranscoder() |
Modifier and Type | Method and Description |
---|---|
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.
|
public Object decodeStringValue(String value)
ValueTranscoder
decodeStringValue
in interface ValueTranscoder<Object>
value
- to decodepublic Object decodeBinaryValue(byte[] value)
ValueTranscoder
decodeBinaryValue
in interface ValueTranscoder<Object>
value
- to decodepublic String encodeStringValue(Object value)
ValueTranscoder
encodeStringValue
in interface ValueTranscoder<Object>
value
- to encodepublic byte[] encodeBinaryValue(Object value)
ValueTranscoder
encodeBinaryValue
in interface ValueTranscoder<Object>
value
- to encodepublic Class<Object> getType()
ValueTranscoder
getType
in interface ValueTranscoder<Object>
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.