Class 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 java.lang.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.
    Author:
    Middleware Services
    • Constructor Detail

      • AbstractBinaryValueTranscoder

        public AbstractBinaryValueTranscoder()
    • Method Detail

      • decodeStringValue

        public T decodeStringValue​(java.lang.String value)
        Description copied from interface: ValueTranscoder
        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 java.lang.String encodeStringValue​(T value)
        Description copied from interface: ValueTranscoder
        Encodes the supplied value into an ldap attribute value.
        Specified by:
        encodeStringValue in interface ValueTranscoder<T>
        Parameters:
        value - to encode
        Returns:
        encoded value