|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValueHandler
Serializes Java objects to and from CDR (GIOP) streams. The working instance
of the value handler is returned by 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.
Method Summary | |
---|---|
String |
getRMIRepositoryID(Class clz)
Get CORBA repository Id for the given java class. |
RunTime |
getRunTimeCodeBase()
Returns the CodeBase for this ValueHandler. |
boolean |
isCustomMarshaled(Class clz)
Indicates that the given class is responsible itself for writing its content to the stream. |
Serializable |
readValue(InputStream in,
int offset,
Class clz,
String repositoryID,
RunTime sender)
Read value from the CORBA input stream in the case when the value is not Streamable or CustomMarshall'ed. |
Serializable |
writeReplace(Serializable value)
When the value provides the writeReplace method, the result of this method is written. |
void |
writeValue(OutputStream out,
Serializable value)
Write value to CORBA output stream using java senmatics. |
Method Detail |
---|
String getRMIRepositoryID(Class clz)
clz
- a class for that the repository Id is required.
RunTime getRunTimeCodeBase()
boolean isCustomMarshaled(Class clz)
Streamable
(default marshalling, generated by IDL-to-java compiler) or
CustomMarshal
(the user-programmed marshalling).
clz
- the class being checked.
Serializable readValue(InputStream in, int offset, Class clz, String repositoryID, 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.
Serializable writeReplace(Serializable value)
the
- value that should be written to the stream.
void writeValue(OutputStream out, Serializable value)
out
- a stream to write into.value
- a java object to write.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |