| java.lang.Object org.jboss.invocation.MarshalledValue
All known Subclasses: org.jboss.invocation.MarshalledValueEX, org.jboss.ejb.plugins.HandleWrapper,
MarshalledValue | public class MarshalledValue implements java.io.Externalizable(Code) | | A simple replacement for the RMI MarshalledObject that uses the thread
context class loader for resolving classes and proxies. This currently does
not support class annotations and dynamic class loading.
author: Scott.Stark@jboss.org version: $Revision: 57209 $ |
Method Summary | |
public boolean | equals(Object obj) | public Object | get() | public int | hashCode() Return a hash code for the serialized form of the value. | public void | readExternal(ObjectInput in) The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays. | public int | size() | public byte[] | toByteArray() | public void | writeExternal(ObjectOutput out) The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays. |
MarshalledValue | public MarshalledValue()(Code) | | Exposed for externalization.
|
hashCode | public int hashCode()(Code) | | Return a hash code for the serialized form of the value.
the serialized form value hash. |
readExternal | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code) | | The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays. The
readExternal method must read the values in the same sequence
and with the same types as were written by writeExternal.
Parameters: in - the stream to read data from in order to restore the object throws: IOException - if I/O errors occur throws: ClassNotFoundException - If the class for an object beingrestored cannot be found. |
toByteArray | public byte[] toByteArray()(Code) | | |
writeExternal | public void writeExternal(ObjectOutput out) throws IOException(Code) | | The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
Parameters: out - the stream to write the object to throws: IOException - Includes any I/O exceptions that may occur |
|
|