|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType
com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableBLOB
public final class SerializableBLOB
Serializable class for a byte array.
| Constructor Summary | |
|---|---|
SerializableBLOB()
Creates a new empty string wrapper class. |
|
SerializableBLOB(byte[] value)
Creates a new byte array wrapper class. |
|
SerializableBLOB(byte[] value,
int length)
Generates a blob of the given length and copies the given value into the new array. |
|
| Method Summary | |
|---|---|
ISerializableType |
clone()
Creates a copy of this serializable type. |
static SerializableBLOB |
createFromLongInteger(long value)
Method to create a serializable blob from a long integer value. |
void |
fromByteBuffer(FastByteBuffer buffer,
int startIndex)
Deserializes a type from a byte buffer. |
void |
fromString(String value)
Deserializes the type from a String representation. |
int[] |
getDimensions()
Gets the 4-dimensional integer array describing the order of this type in each of the four possible dimensions. |
int |
getLength()
Gets the length in bytes of this type. |
MessageParameterType |
getParameterType()
Gets the message type identifier of the type. |
TypeIdentifier |
getTypeIdentifier()
Gets the Sunrise type identifier of the type. |
byte[] |
getValue()
Gets the raw value of the serializable type. |
boolean |
hasSameDataAs(Object obj)
|
long |
longValue()
Returns the content of the BLOB as 64 bit little endian integer (Java type long) value. |
void |
setValue(Object value)
Sets the value for this type. |
int |
toByteBuffer(FastByteBuffer buffer,
int startIndex)
Serializes the type in a byte buffer. |
String |
toString()
|
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType |
|---|
getParameterName, hasParameterNameSet, setParameterName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SerializableBLOB()
public SerializableBLOB(byte[] value,
int length)
value - The value for the blob.length - The length of the blob.public SerializableBLOB(byte[] value)
value - The value of the wrapper class.| Method Detail |
|---|
public void setValue(Object value)
value - The value for this type. Must be compatible with the type. The
value should never be null. Each subclass must
check this.
public void fromByteBuffer(FastByteBuffer buffer,
int startIndex)
buffer - The byte buffe from which the value should be deserialized.startIndex - The start index of the deserialization.
public int toByteBuffer(FastByteBuffer buffer,
int startIndex)
buffer - The byte buffer to which the value should be serialized.startIndex - The start index for the serialization.
public byte[] getValue()
public MessageParameterType getParameterType()
public int getLength()
public TypeIdentifier getTypeIdentifier()
public int[] getDimensions()
public String toString()
toString in class Objectpublic void fromString(String value)
value - The string representation for the type.public ISerializableType clone()
clone in interface ISerializableTypeclone in class SerializableTypepublic boolean hasSameDataAs(Object obj)
public static SerializableBLOB createFromLongInteger(long value)
value - Long integer value to serialize.
public long longValue()
IllegalStateException - if the byte buffer does not contain exactly 8 bytes (64 bits)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||