|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines methods which allow serialization of Java objects to and from GIOP streams.
Method Summary | |
String |
getRMIRepositoryID(Class clz)
Returns the CORBA RepositoryId for the given Java class. |
org.omg.SendingContext.RunTime |
getRunTimeCodeBase()
Returns the CodeBase for this ValueHandler. |
boolean |
isCustomMarshaled(Class clz)
Indicates whether the given class performs custom or default marshaling. |
Serializable |
readValue(org.omg.CORBA.portable.InputStream in,
int offset,
Class clz,
String repositoryID,
org.omg.SendingContext.RunTime sender)
Reads a value from the stream using Java semantics. |
Serializable |
writeReplace(Serializable value)
If the value contains a writeReplace method then the result
is returned. |
void |
writeValue(org.omg.CORBA.portable.OutputStream out,
Serializable value)
Writes a value to the stream using Java semantics. |
Method Detail |
public void writeValue(org.omg.CORBA.portable.OutputStream out, Serializable value)
out
- the stream to write the value to.value
- the value to be written to the stream.public Serializable readValue(org.omg.CORBA.portable.InputStream in, int offset, Class clz, String repositoryID, org.omg.SendingContext.RunTime sender)
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.
public String getRMIRepositoryID(Class clz)
clz
- a Java class.
public boolean isCustomMarshaled(Class clz)
clz
- the class to test for custom marshaling.
true
if the class performs custom marshaling, false
if it does not.public org.omg.SendingContext.RunTime getRunTimeCodeBase()
public Serializable writeReplace(Serializable value)
writeReplace
method then the result
is returned. Otherwise, the value itself is returned.
value
- the value to be marshaled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |