public interface ValueHandler
Util.createValueHandler() and can
be altered by setting the system property "javax.rmi.CORBA.ValueHandlerClass"
to the name of the alternative class that must implement ValueHandler.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRMIRepositoryID(java.lang.Class clz)
Get CORBA repository Id for the given java class.
|
org.omg.SendingContext.RunTime |
getRunTimeCodeBase()
Returns the CodeBase for this ValueHandler.
|
boolean |
isCustomMarshaled(java.lang.Class clz)
Indicates that the given class is responsible itself for writing its
content to the stream.
|
java.io.Serializable |
readValue(org.omg.CORBA.portable.InputStream in,
int offset,
java.lang.Class clz,
java.lang.String repositoryID,
org.omg.SendingContext.RunTime sender)
Read value from the CORBA input stream in the case when the value is not
Streamable or CustomMarshall'ed.
|
java.io.Serializable |
writeReplace(java.io.Serializable value)
When the value provides the writeReplace method, the result of this method
is written.
|
void |
writeValue(org.omg.CORBA.portable.OutputStream out,
java.io.Serializable value)
Write value to CORBA output stream using java senmatics.
|
java.lang.String getRMIRepositoryID(java.lang.Class clz)
clz - a class for that the repository Id is required.org.omg.SendingContext.RunTime getRunTimeCodeBase()
boolean isCustomMarshaled(java.lang.Class clz)
Streamable
(default marshalling, generated by IDL-to-java compiler) or
CustomMarshal (the user-programmed marshalling).clz - the class being checked.java.io.Serializable readValue(org.omg.CORBA.portable.InputStream in, int offset, java.lang.Class clz, java.lang.String repositoryID, org.omg.SendingContext.RunTime sender)
in - a CORBA stream to read.offset - the current position in the input stream.clz - the type of value being read.repositoryID - the repository Id of the value being read.sender - the sending context that should provide data about the
message originator.java.io.Serializable writeReplace(java.io.Serializable value)
value - the value that should be written to the stream.void writeValue(org.omg.CORBA.portable.OutputStream out, java.io.Serializable value)
out - a stream to write into.value - a java object to write.