sidnet.core.misc
Class EmptyMessage

java.lang.Object
  extended by sidnet.core.misc.EmptyMessage
All Implemented Interfaces:
JistAPI.Timeless, Message

public class EmptyMessage
extends java.lang.Object
implements Message


Field Summary
 
Fields inherited from interface jist.swans.misc.Message
NULL
 
Constructor Summary
EmptyMessage()
          Creates a new instance of EmptyMessage
 
Method Summary
 void getBytes(byte[] b, int offset)
          Store packet into byte array.
 int getSize()
          Return packet size or Constants.ZERO_WIRE_SIZE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyMessage

public EmptyMessage()
Creates a new instance of EmptyMessage

Method Detail

getSize

public int getSize()
Return packet size or Constants.ZERO_WIRE_SIZE.

Specified by:
getSize in interface Message
Returns:
packet size [in bytes]

getBytes

public void getBytes(byte[] b,
                     int offset)
Store packet into byte array.

Specified by:
getBytes in interface Message
Parameters:
b - destination byte array
offset - byte array starting offset