public class BinaryArgument extends java.lang.Object implements DataRequestArgument
Constructor and Description |
---|
BinaryArgument(byte[] serializedData,
SerializationType serializationType)
Constructs a binary argument from the serialized data and the serialization type.
|
BinaryArgument(java.lang.String id,
byte[] serializedData,
SerializationType serializationType)
Constructs a binary argument from the ID,
the serialized data, and the serialization type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Retrieves a string containing the object ID (if it is defined).
|
SerializationType |
getSerializationType()
Retrieves the serialization type for the argument.
|
byte[] |
getSerializedData()
Retrieves the serialized data for the argument.
|
public BinaryArgument(java.lang.String id, byte[] serializedData, SerializationType serializationType)
id
- The ID of the argument.serializedData
- The binary data, in serialized form.serializationType
- The type of serialization. See SerializationType
for more information.public BinaryArgument(byte[] serializedData, SerializationType serializationType)
serializedData
- The binary data, in serialized form.serializationType
- The type of serialization. See SerializationType
for more information.public byte[] getSerializedData()
public SerializationType getSerializationType()
SerializationType
for more information.public java.lang.String getId()
getId
in interface DataRequestArgument