public class DataWrapper
extends java.lang.Object
Constructor and Description |
---|
DataWrapper() |
Modifier and Type | Method and Description |
---|---|
static WrappedData |
unwrap(java.lang.Object wrappedData,
ISerializer serializer)
Takes the serialized WrappedData and deserializes it with the given serializer.
|
static java.lang.Object |
wrap(java.lang.Object addedData,
java.lang.Object originalData,
ISerializer serializer)
Adds the data to already serialized data.
|
public static java.lang.Object wrap(java.lang.Object addedData, java.lang.Object originalData, ISerializer serializer) throws java.lang.Exception
addedData
- Added data. It must a basic .Net type. Otherwise the serialization will fail.originalData
- Already serialized data - it is type of string or byte[].serializer
- serializerjava.lang.Exception
public static WrappedData unwrap(java.lang.Object wrappedData, ISerializer serializer) throws java.lang.Exception
wrappedData
- data serialized by 'Wrap' methodserializer
- serializerjava.lang.Exception