com.stellent.cis.common.marshall
Class RemoteValueContainer

java.lang.Object
  extended by com.stellent.cis.common.marshall.RemoteValueContainer
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class RemoteValueContainer
extends java.lang.Object
implements java.io.Externalizable

Container for the return value from a remote command. Handles setting the context loader appropriately so the contents can be read.

See Also:
Serialized Form

Constructor Summary
RemoteValueContainer()
           
RemoteValueContainer(java.lang.Object value)
           
 
Method Summary
 byte[] getObjectBytes()
           
 void readExternal(java.io.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.
 void writeExternal(java.io.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteValueContainer

public RemoteValueContainer(java.lang.Object value)

RemoteValueContainer

public RemoteValueContainer()
Method Detail

getObjectBytes

public byte[] getObjectBytes()

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
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.

Specified by:
readExternal in interface java.io.Externalizable
Parameters:
in - the stream to read data from in order to restore the object
Throws:
java.io.IOException - if I/O errors occur
java.lang.ClassNotFoundException - If the class for an object being restored cannot be found.

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
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.

Specified by:
writeExternal in interface java.io.Externalizable
Parameters:
out - the stream to write the object to
Throws:
java.io.IOException - Includes any I/O exceptions that may occur