com.j_spaces.kernel.lrmi
Class MarshObject
java.lang.Object
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
MarshObject
public MarshObject()
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