public interface ReflectionTranscoder
Modifier and Type | Method and Description |
---|---|
Object |
decodeBinaryValues(Collection<byte[]> values)
Decodes the supplied values into an object.
|
Object |
decodeStringValues(Collection<String> values)
Decodes the supplied values into an object.
|
Collection<byte[]> |
encodeBinaryValues(Object value)
Encodes the supplied value into one or more byte arrays for use in an attribute.
|
Collection<String> |
encodeStringValues(Object value)
Encodes the supplied value into one or more strings for use in an attribute.
|
Class<?> |
getType()
Returns the type produced by this transcoder.
|
boolean |
supports(Class<?> type)
Returns whether this transcoder can convert object of the supplied type.
|
Object decodeStringValues(Collection<String> values)
values
- to decodeObject decodeBinaryValues(Collection<byte[]> values)
values
- to decodeCollection<String> encodeStringValues(Object value)
value
- containing data to encode as stringsCollection<byte[]> encodeBinaryValues(Object value)
value
- containing data to encode as byte arraysClass<?> getType()
boolean supports(Class<?> type)
type
- of objectCopyright © 2003-2019 Virginia Tech. All Rights Reserved.