edu.virginia.cs.mng.hypercast
Interface I_Message
- All Known Implementing Classes:
- OL_Message, HC_Message, DT_Message
- public abstract interface I_Message
This interface dictates all the functions any message must
implement. Currently, the only function is one that converts a
message into a byte array so that it can be sent. The reverse
function, creating an I_Message from a byte array is implemented as
part of many interfaces, for example, I_AdapterCallBack.
It is implemented by HC_Message,DT_Messsage and OL_Message.
|
Method Summary |
byte[] |
toByteArray()
Converts this message to a byte array. |
toByteArray
public byte[] toByteArray()
- Converts this message to a byte array.
- Throws:
- java.lang.IllegalStateException - if message is an in inconsistent format for transformation.
(e.g. a required field has not been set.)