hypercast
Interface I_Message
- All Known Subinterfaces:
- I_MultiProtocol_Message
- All Known Implementing Classes:
- DT_Message, HC_Message, OL_Message, SecInfoExchange_Message, SPT_Message
- public 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.)