FileDocCategorySizeDatePackage
ValueHandler.javaAPI DocJava SE 5 API2784Fri Aug 26 14:57:46 BST 2005javax.rmi.CORBA

ValueHandler

public interface ValueHandler
Defines methods which allow serialization of Java objects to and from GIOP streams.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetRMIRepositoryID(java.lang.Class clz)
Returns the CORBA RepositoryId for the given Java class.

param
clz a Java class.
return
the CORBA RepositoryId for the class.

public org.omg.SendingContext.RunTimegetRunTimeCodeBase()
Returns the CodeBase for this ValueHandler. This is used by the ORB runtime. The server sends the service context containing the IOR for this CodeBase on the first GIOP reply. The client does the same on the first GIOP request.

return
the SendingContext.CodeBase of this ValueHandler.

public booleanisCustomMarshaled(java.lang.Class clz)
Indicates whether the given class performs custom or default marshaling.

param
clz the class to test for custom marshaling.
return
true if the class performs custom marshaling, false if it does not.

public java.io.SerializablereadValue(org.omg.CORBA.portable.InputStream in, int offset, java.lang.Class clz, java.lang.String repositoryID, org.omg.SendingContext.RunTime sender)
Reads a value from the stream using Java semantics.

param
in the stream to read the value from.
param
offset the current position in the input stream.
param
clz the type of the value to be read in.
param
repositoryID the RepositoryId of the value to be read in.
param
sender the sending context runtime codebase.
return
the value read from the stream.

public java.io.SerializablewriteReplace(java.io.Serializable value)
If the value contains a writeReplace method then the result is returned. Otherwise, the value itself is returned.

param
value the value to be marshaled.
return
the true value to marshal on the wire.

public voidwriteValue(org.omg.CORBA.portable.OutputStream out, java.io.Serializable value)
Writes a value to the stream using Java semantics.

param
out the stream to write the value to.
param
value the value to be written to the stream.