public interface ReflectionTranscoder
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decodeBinaryValues(java.util.Collection<byte[]> values)
Decodes the supplied values into an object.
|
java.lang.Object |
decodeStringValues(java.util.Collection<java.lang.String> values)
Decodes the supplied values into an object.
|
java.util.Collection<byte[]> |
encodeBinaryValues(java.lang.Object value)
Encodes the supplied value into one or more byte arrays for use in an attribute.
|
java.util.Collection<java.lang.String> |
encodeStringValues(java.lang.Object value)
Encodes the supplied value into one or more strings for use in an attribute.
|
java.lang.Class<?> |
getType()
Returns the type produced by this transcoder.
|
boolean |
supports(java.lang.Class<?> type)
Returns whether this transcoder can convert object of the supplied type.
|
java.lang.Object decodeStringValues(java.util.Collection<java.lang.String> values)
values - to decodejava.lang.Object decodeBinaryValues(java.util.Collection<byte[]> values)
values - to decodejava.util.Collection<java.lang.String> encodeStringValues(java.lang.Object value)
value - containing data to encode as stringsjava.util.Collection<byte[]> encodeBinaryValues(java.lang.Object value)
value - containing data to encode as byte arraysjava.lang.Class<?> getType()
boolean supports(java.lang.Class<?> type)
type - of object