-
- All Known Subinterfaces:
- ValueHandlerMultiFormat
public interface ValueHandler
Defines methods which allow serialization of Java objects to and from GIOP streams.
-
-
Method Summary
Methods Modifier and Type Method and Description String
getRMIRepositoryID(Class clz)
Returns the CORBA RepositoryId for the given Java class.RunTime
getRunTimeCodeBase()
Returns the CodeBase for this ValueHandler.boolean
isCustomMarshaled(Class clz)
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
writeReplace(Serializable value)
If the value contains awriteReplace
method then the result is returned.void
writeValue(OutputStream out, Serializable value)
Writes a value to the stream using Java semantics.
-
-
-
Method Detail
-
writeValue
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.
-
readValue
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.
-
getRMIRepositoryID
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.
-
isCustomMarshaled
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.
-
getRunTimeCodeBase
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
Serializable writeReplace(Serializable value)
If the value contains awriteReplace
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.
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/rmi/CORBA/ValueHandler.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.