javax.rmi.CORBA
Interface ValueHandler

All Known Subinterfaces:
ValueHandlerMultiFormat sample code for javax.rmi.CORBA.ValueHandlerMultiFormat definition code for javax.rmi.CORBA.ValueHandlerMultiFormat

public interface ValueHandler

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


Method Summary
 String sample code for java.lang.String definition code for java.lang.String getRMIRepositoryID sample code for javax.rmi.CORBA.ValueHandler.getRMIRepositoryID(java.lang.Class) definition code for javax.rmi.CORBA.ValueHandler.getRMIRepositoryID(java.lang.Class) (Class sample code for java.lang.Class definition code for java.lang.Class  clz)
          Returns the CORBA RepositoryId for the given Java class.
 RunTime sample code for org.omg.SendingContext.RunTime definition code for org.omg.SendingContext.RunTime getRunTimeCodeBase sample code for javax.rmi.CORBA.ValueHandler.getRunTimeCodeBase() definition code for javax.rmi.CORBA.ValueHandler.getRunTimeCodeBase() ()
          Returns the CodeBase for this ValueHandler.
 boolean isCustomMarshaled sample code for javax.rmi.CORBA.ValueHandler.isCustomMarshaled(java.lang.Class) definition code for javax.rmi.CORBA.ValueHandler.isCustomMarshaled(java.lang.Class) (Class sample code for java.lang.Class definition code for java.lang.Class  clz)
          Indicates whether the given class performs custom or default marshaling.
 Serializable sample code for java.io.Serializable definition code for java.io.Serializable readValue sample code for javax.rmi.CORBA.ValueHandler.readValue(org.omg.CORBA.portable.InputStream, int, java.lang.Class, java.lang.String, org.omg.SendingContext.RunTime) definition code for javax.rmi.CORBA.ValueHandler.readValue(org.omg.CORBA.portable.InputStream, int, java.lang.Class, java.lang.String, org.omg.SendingContext.RunTime) (InputStream sample code for org.omg.CORBA.portable.InputStream definition code for org.omg.CORBA.portable.InputStream  in, int offset, Class sample code for java.lang.Class definition code for java.lang.Class  clz, String sample code for java.lang.String definition code for java.lang.String  repositoryID, RunTime sample code for org.omg.SendingContext.RunTime definition code for org.omg.SendingContext.RunTime  sender)
          Reads a value from the stream using Java semantics.
 Serializable sample code for java.io.Serializable definition code for java.io.Serializable writeReplace sample code for javax.rmi.CORBA.ValueHandler.writeReplace(java.io.Serializable) definition code for javax.rmi.CORBA.ValueHandler.writeReplace(java.io.Serializable) (Serializable sample code for java.io.Serializable definition code for java.io.Serializable  value)
          If the value contains a writeReplace method then the result is returned.
 void writeValue sample code for javax.rmi.CORBA.ValueHandler.writeValue(org.omg.CORBA.portable.OutputStream, java.io.Serializable) definition code for javax.rmi.CORBA.ValueHandler.writeValue(org.omg.CORBA.portable.OutputStream, java.io.Serializable) (OutputStream sample code for org.omg.CORBA.portable.OutputStream definition code for org.omg.CORBA.portable.OutputStream  out, Serializable sample code for java.io.Serializable definition code for java.io.Serializable  value)
          Writes a value to the stream using Java semantics.
 

Method Detail

writeValue sample code for javax.rmi.CORBA.ValueHandler.writeValue(org.omg.CORBA.portable.OutputStream, java.io.Serializable) definition code for javax.rmi.CORBA.ValueHandler.writeValue(org.omg.CORBA.portable.OutputStream, java.io.Serializable)

void writeValue(OutputStream sample code for org.omg.CORBA.portable.OutputStream definition code for org.omg.CORBA.portable.OutputStream  out,
                Serializable sample code for java.io.Serializable definition code for java.io.Serializable  value)
Writes a value to the stream using Java semantics.

Parameters:
out - the stream to write the value to.
value - the value to be written to the stream.

readValue sample code for javax.rmi.CORBA.ValueHandler.readValue(org.omg.CORBA.portable.InputStream, int, java.lang.Class, java.lang.String, org.omg.SendingContext.RunTime) definition code for javax.rmi.CORBA.ValueHandler.readValue(org.omg.CORBA.portable.InputStream, int, java.lang.Class, java.lang.String, org.omg.SendingContext.RunTime)

Serializable sample code for java.io.Serializable definition code for java.io.Serializable  readValue(InputStream sample code for org.omg.CORBA.portable.InputStream definition code for org.omg.CORBA.portable.InputStream  in,
                       int offset,
                       Class sample code for java.lang.Class definition code for java.lang.Class  clz,
                       String sample code for java.lang.String definition code for java.lang.String  repositoryID,
                       RunTime sample code for org.omg.SendingContext.RunTime definition code for org.omg.SendingContext.RunTime  sender)
Reads a value from the stream using Java semantics.

Parameters:
in - the stream to read the value from.
offset - the current position in the input stream.
clz - the type of the value to be read in.
repositoryID - the RepositoryId of the value to be read in.
sender - the sending context runtime codebase.
Returns:
the value read from the stream.

getRMIRepositoryID sample code for javax.rmi.CORBA.ValueHandler.getRMIRepositoryID(java.lang.Class) definition code for javax.rmi.CORBA.ValueHandler.getRMIRepositoryID(java.lang.Class)

String sample code for java.lang.String definition code for java.lang.String  getRMIRepositoryID(Class sample code for java.lang.Class definition code for java.lang.Class  clz)
Returns the CORBA RepositoryId for the given Java class.

Parameters:
clz - a Java class.
Returns:
the CORBA RepositoryId for the class.

isCustomMarshaled sample code for javax.rmi.CORBA.ValueHandler.isCustomMarshaled(java.lang.Class) definition code for javax.rmi.CORBA.ValueHandler.isCustomMarshaled(java.lang.Class)

boolean isCustomMarshaled(Class sample code for java.lang.Class definition code for java.lang.Class  clz)
Indicates whether the given class performs custom or default marshaling.

Parameters:
clz - the class to test for custom marshaling.
Returns:
true if the class performs custom marshaling, false if it does not.

getRunTimeCodeBase sample code for javax.rmi.CORBA.ValueHandler.getRunTimeCodeBase() definition code for javax.rmi.CORBA.ValueHandler.getRunTimeCodeBase()

RunTime sample code for org.omg.SendingContext.RunTime definition code for org.omg.SendingContext.RunTime  getRunTimeCodeBase()
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.

Returns:
the SendingContext.CodeBase of this ValueHandler.

writeReplace sample code for javax.rmi.CORBA.ValueHandler.writeReplace(java.io.Serializable) definition code for javax.rmi.CORBA.ValueHandler.writeReplace(java.io.Serializable)

Serializable sample code for java.io.Serializable definition code for java.io.Serializable  writeReplace(Serializable sample code for java.io.Serializable definition code for java.io.Serializable  value)
If the value contains a writeReplace method then the result is returned. Otherwise, the value itself is returned.

Parameters:
value - the value to be marshaled.
Returns:
the true value to marshal on the wire.