Package org.medcare.igtl.messages
Class StringMessage
java.lang.Object
org.medcare.igtl.messages.OpenIGTMessage
org.medcare.igtl.messages.StringMessage
-
Field Summary
Fields inherited from class org.medcare.igtl.messages.OpenIGTMessage
bytesArray, deviceName, VERSION
-
Constructor Summary
ConstructorDescriptionStringMessage
(String deviceName) StringMessage
(String deviceName, String msg) StringMessage
(Header head, byte[] body) -
Method Summary
Methods inherited from class org.medcare.igtl.messages.OpenIGTMessage
getBody, getBytes, getDeviceName, getHeader, setBody, setHeader, Unpack
-
Constructor Details
-
StringMessage
-
StringMessage
-
StringMessage
- Throws:
Exception
-
-
Method Details
-
unpackBody
Description copied from class:OpenIGTMessage
** To create body from body array**
- Specified by:
unpackBody
in classOpenIGTMessage
- Returns:
- true if unpacking is ok
- Throws:
Exception
-
packBody
public byte[] packBody()Description copied from class:OpenIGTMessage
** To create body from image_header and image_data SetImageHeader and SetImageData must have called first**
- Specified by:
packBody
in classOpenIGTMessage
- Returns:
- the bytes array containing the message
-
toString
Description copied from class:OpenIGTMessage
** To get message String **- Specified by:
toString
in classOpenIGTMessage
- Returns:
- the message String
-
getEncoding
public short getEncoding() -
getLength
public short getLength() -
getMessage
-