Package org.ldaptive.io
Class ByteArrayValueTranscoder
- java.lang.Object
-
- org.ldaptive.io.AbstractBinaryValueTranscoder<byte[]>
-
- org.ldaptive.io.ByteArrayValueTranscoder
-
- All Implemented Interfaces:
ValueTranscoder<byte[]>
public class ByteArrayValueTranscoder extends AbstractBinaryValueTranscoder<byte[]>
Decodes and encodes a byte array for use in an ldap attribute value.
-
-
Constructor Summary
Constructors Constructor Description ByteArrayValueTranscoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decodeBinaryValue(byte[] value)
Decodes the supplied ldap attribute value into a custom type.byte[]
encodeBinaryValue(byte[] value)
Encodes the supplied value into an ldap attribute value.Class<byte[]>
getType()
Returns the type produced by this value transcoder.-
Methods inherited from class org.ldaptive.io.AbstractBinaryValueTranscoder
decodeStringValue, encodeStringValue
-
-
-
-
Method Detail
-
decodeBinaryValue
public byte[] decodeBinaryValue(byte[] value)
Description copied from interface:ValueTranscoder
Decodes the supplied ldap attribute value into a custom type.- Parameters:
value
- to decode- Returns:
- decoded value
-
encodeBinaryValue
public byte[] encodeBinaryValue(byte[] value)
Description copied from interface:ValueTranscoder
Encodes the supplied value into an ldap attribute value.- Parameters:
value
- to encode- Returns:
- encoded value
-
getType
public Class<byte[]> getType()
Description copied from interface:ValueTranscoder
Returns the type produced by this value transcoder.- Returns:
- type produced by this value transcoder
-
-