T
- Type of this Marshaller. Type is used to enforce symmetry between
unmarshall and marshall methods.public interface Marshaller<T>
Modifier and Type | Method and Description |
---|---|
byte[] |
extractKey(T data)
Extracts a key from given object.
|
boolean |
hasKey()
Determines whether or not a key is associated with type T.
|
DataEncapsulation |
marshall(T data)
Marshalls given Object to DataEncapsulation
|
T |
unmarshall(DataEncapsulation dEnc)
Unmarshalls given DataEncapsulation to Object.
|
boolean hasKey()
byte[] extractKey(T data)
data
- Object that holds keyT unmarshall(DataEncapsulation dEnc) throws IOException
dEnc
- DataEncapsulationIOException
- if a failure is detected during operationDataEncapsulation marshall(T data) throws IOException
data
- An Object to marshallIOException
- if a failure is detected during operationCopyright © 2016. All rights reserved.