public class ModuleBytesByteSerializer extends Object
ModuleBytes deploy executables| Modifier and Type | Field and Description |
|---|---|
protected TypesSerializer |
byteArraySerializer |
protected TypesSerializer |
stringSerializer |
| Constructor and Description |
|---|
ModuleBytesByteSerializer(ByteSerializerFactory factory,
TypesFactory typesFactory) |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getType()
Obtains the type of the source to be serialized.
|
byte[] |
toBytes(T deployExecutable)
Converts an object to a byte array.
|
protected byte[] |
toSpecializedBytes(ModuleBytes deployExecutable) |
protected byte[] |
versionToBytes(Number version) |
protected final TypesSerializer byteArraySerializer
protected final TypesSerializer stringSerializer
public ModuleBytesByteSerializer(ByteSerializerFactory factory, TypesFactory typesFactory)
protected byte[] toSpecializedBytes(ModuleBytes deployExecutable)
public Class<T> getType()
ByteSerializergetType in interface ByteSerializer<T extends DeployExecutable>public byte[] toBytes(T deployExecutable)
ByteSerializertoBytes in interface ByteSerializer<T extends DeployExecutable>deployExecutable - the source object to convert to bytesprotected byte[] versionToBytes(Number version)
Copyright © 2022. All rights reserved.