All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.Header

java.lang.Object
   |
   +----JavaGroups.Header

public class Header
extends Object
implements Externalizable, Cloneable
Container for header data which is added to the front of a Message by a protocol layer when traveling down the stack. When traveling up on the other side, each protocol layer will remove its Header. Headers can only contain objects, which have to be serializable (or support externalization). Both the object and its byte representation are maintained for faster access of its contents, but the byte buffer is only created when needed (e.g. when Size() or writeExternal() is called) ! .


Constructor Index

 o Header()
 o Header(byte[], Object)
 o Header(Object)

Method Index

 o clone()
 o GetObject()
 o main(String[])
 o readExternal(ObjectInput)
 o SetObject(Object)
 o Size()
 o toString()
 o writeExternal(ObjectOutput)

Constructors

 o Header
 public Header()
 o Header
 public Header(Object obj)
 o Header
 public Header(byte data[],
               Object obj)

Methods

 o SetObject
 public void SetObject(Object obj)
 o GetObject
 public Object GetObject()
 o Size
 public long Size()
 o toString
 public String toString()
Overrides:
toString in class Object
 o clone
 public Object clone() throws CloneNotSupportedException
Overrides:
clone in class Object
 o writeExternal
 public void writeExternal(ObjectOutput out) throws IOException
 o readExternal
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index