public abstract class Transformable extends Object
The Transformer
for the given class will read all Transform
annotations and determine
which parts of the byte array belong to which Java field. It then converts them using the appropriate
AS400... classes.
Constructor and Description |
---|
Transformable() |
Modifier and Type | Method and Description |
---|---|
static <T extends Transformable> |
parse(Class<T> type,
byte[] data)
Tries for create a new instance of the given type by parsing the given byte array.
|
void |
toBytes(byte[] destination)
Transforms this object into a byte representation which can be sent to an i5.
|
String |
toString() |
public static <T extends Transformable> T parse(@Nonnull Class<T> type, @Nonnull byte[] data)
T
- the generic type for typetype
- the type to be createddata
- the byte array to parsepublic void toBytes(byte[] destination)
destination
- the byte array to fillCopyright © 2018. All rights reserved.