public interface DataConverter
Modifier and Type | Method and Description |
---|---|
<T> T |
fromData(byte[] content,
java.lang.Class<T> valueClass,
java.lang.reflect.Type valueType)
Implements conversion of a single value.
|
java.lang.Object[] |
fromDataArray(byte[] content,
java.lang.reflect.Type... valueType)
Implements conversion of an array of values of different types.
|
byte[] |
toData(java.lang.Object... value)
Implements conversion of a list of values.
|
byte[] toData(java.lang.Object... value) throws DataConverterException
value
- Java value to convert to String.DataConverterException
- if conversion of the value passed as parameter failed for any
reason.<T> T fromData(byte[] content, java.lang.Class<T> valueClass, java.lang.reflect.Type valueType) throws DataConverterException
content
- Serialized value to convert to a Java object.valueClass
- valueType
- DataConverterException
- if conversion of the data passed as parameter failed for any
reason.java.lang.Object[] fromDataArray(byte[] content, java.lang.reflect.Type... valueType) throws DataConverterException
content
- serialized value to convert to Java objects.DataConverterException
- if conversion of the data passed as parameter failed for any
reason.