This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.rmi.CORBA
interface ValueHandler

All Known Subinterfaces:
ValueHandlerMultiFormat

public interface ValueHandler

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


Method Summary
 String

          Returns the CORBA RepositoryId for the given Java class.
 RunTime

          Returns the CodeBase for this ValueHandler.
 boolean

          Indicates whether the given class performs custom or default marshaling.
 Serializable
readValue(InputStream in, int offset, Class clz, String repositoryID, RunTime sender)

          Reads a value from the stream using Java semantics.
 Serializable

          If the value contains a writeReplace method then the result is returned.
 void

          Writes a value to the stream using Java semantics.
 

Method Detail

getRMIRepositoryID

public String getRMIRepositoryID(Class clz)
Returns the CORBA RepositoryId for the given Java class.

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

getRunTimeCodeBase

public 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.

isCustomMarshaled

public boolean isCustomMarshaled(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.

readValue

public Serializable readValue(InputStream in,
                              int offset,
                              Class clz,
                              String repositoryID,
                              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.

writeReplace

public Serializable writeReplace(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.

writeValue

public void writeValue(OutputStream out,
                       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.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.