org.ldaptive.io
Interface ValueTranscoder<T>

Type Parameters:
T - type of value
All Known Implementing Classes:
AbstractBinaryValueTranscoder, AbstractPrimitiveValueTranscoder, AbstractSchemaElementValueTranscoder, AbstractStringValueTranscoder, AttributeTypeValueTranscoder, BooleanValueTranscoder, ByteArrayValueTranscoder, CertificateValueTranscoder, CharArrayValueTranscoder, DeltaTimeValueTranscoder, DITContentRuleValueTranscoder, DITStructureRuleValueTranscoder, DoubleValueTranscoder, FileTimeValueTranscoder, FloatValueTranscoder, GeneralizedTimeValueTranscoder, IntegerValueTranscoder, LongValueTranscoder, MatchingRuleUseValueTranscoder, MatchingRuleValueTranscoder, NameFormValueTranscoder, ObjectClassValueTranscoder, ObjectValueTranscoder, ShortValueTranscoder, StringValueTranscoder, SyntaxValueTranscoder, UnicodePwdValueTranscoder, UUIDValueTranscoder

public interface ValueTranscoder<T>

Interface for decoding and encoding custom types for ldap attribute values.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Method Summary
 T decodeBinaryValue(byte[] value)
          Decodes the supplied ldap attribute value into a custom type.
 T decodeStringValue(String value)
          Decodes the supplied ldap attribute value into a custom type.
 byte[] encodeBinaryValue(T value)
          Encodes the supplied value into an ldap attribute value.
 String encodeStringValue(T value)
          Encodes the supplied value into an ldap attribute value.
 Class<T> getType()
          Returns the type produced by this value transcoder.
 

Method Detail

decodeStringValue

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

Parameters:
value - to decode
Returns:
decoded value

decodeBinaryValue

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

Parameters:
value - to decode
Returns:
decoded value

encodeStringValue

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

Parameters:
value - to encode
Returns:
encoded value

encodeBinaryValue

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

Parameters:
value - to encode
Returns:
encoded value

getType

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

Returns:
type produced by this value transcoder


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