com.j_spaces.kernel.lrmi
Class MarshObject

java.lang.Object
  extended by com.j_spaces.kernel.lrmi.MarshObject
All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
CompressedMarshObject

public class MarshObject
extends Object
implements Externalizable

MarshObject is similar to java.rmi.MarshalledObject. However, it does not support codebased annotations. MarshObject is Externelizable and thus should be transferred faster through RMI or LRMI. MarshObject also has a public getBytes() method.

See Also:
Serialized Form

Constructor Summary
MarshObject()
           
 
Method Summary
 boolean equals(Object obj)
           
 byte[] getBytes()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void setBytes(byte[] bytes)
          set this object by rendering a byte array.
 void setObject(Object obj)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshObject

public MarshObject()
Method Detail

setObject

public void setObject(Object obj)

getBytes

public final byte[] getBytes()

setBytes

public final void setBytes(byte[] bytes)
set this object by rendering a byte array.


equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException