|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.openorb.orb.rmi.ValueHandlerImpl
public final class ValueHandlerImpl
This class is able to marshal and to unmarshal a RMI value.
| Method Summary | |
|---|---|
static ValueHandlerImpl |
createValueHandler(org.apache.avalon.framework.logger.Logger logger)
Create a value handler instance. |
java.lang.String |
getRMIRepositoryID(java.lang.Class clz)
This method returns the RMI-style repository ID string for clz. |
org.omg.SendingContext.RunTime |
getRunTimeCodeBase()
This method returns the ValueHandler object's SendingContext::RunTime object reference, which is used to construct the SendingContextRuntTime service context. |
boolean |
isCustomMarshaled(java.lang.Class clz)
This method returns true if the value is custom marshaled and therefore requires a chunked encoding, and false otherwise. |
java.io.Serializable |
readValue(org.omg.CORBA.portable.InputStream in_sub,
int offset,
java.lang.Class expected,
java.lang.String repoID,
org.omg.SendingContext.RunTime sender)
The readValue method can be used to read GIOP data, including RMI remote objects and serialized data objects, from an underlying portable InputStream. |
java.io.Serializable |
writeReplace(java.io.Serializable value)
This method returns the serialization replacement for the value object. |
java.io.Serializable |
writeReplaceExt(java.io.Serializable value,
RMIObjectStreamClass descrip)
|
void |
writeValue(org.omg.CORBA.portable.OutputStream out_sub,
java.io.Serializable value)
The writeValue method can be used to write GIOP data, including RMI remote objects and serialized data objects, to an underlying portable OutputStream. |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ValueHandlerImpl createValueHandler(org.apache.avalon.framework.logger.Logger logger)
logger - The logger for the ValueHandler instance.
public void writeValue(org.omg.CORBA.portable.OutputStream out_sub,
java.io.Serializable value)
writeValue in interface javax.rmi.CORBA.ValueHandlerout_sub - The stream to write the value to.value - The value to write to the stream.
public java.io.Serializable readValue(org.omg.CORBA.portable.InputStream in_sub,
int offset,
java.lang.Class expected,
java.lang.String repoID,
org.omg.SendingContext.RunTime sender)
readValue in interface javax.rmi.CORBA.ValueHandlerin_sub - The input stream to read the value from.offset - the offset in the stream of the value being unmarshaled.expected - Java class of the value to be unmarshaled.repoID - repository ID unmarshaled from the value header by the caller of
readValue.sender - the sending context object passed in the optional service
context tagged SendingContextRunTime in the GIOP header, if
any, or null if no sending context was passed.
public java.lang.String getRMIRepositoryID(java.lang.Class clz)
getRMIRepositoryID in interface javax.rmi.CORBA.ValueHandlerclz - The class to get the RMI reopsitory id for.
public boolean isCustomMarshaled(java.lang.Class clz)
isCustomMarshaled in interface javax.rmi.CORBA.ValueHandlerclz - The class to check whether it is custom marshaled or not.
public org.omg.SendingContext.RunTime getRunTimeCodeBase()
getRunTimeCodeBase in interface javax.rmi.CORBA.ValueHandlerpublic java.io.Serializable writeReplace(java.io.Serializable value)
writeReplace in interface javax.rmi.CORBA.ValueHandlervalue - The value for which to call the writeReplace method.
public java.io.Serializable writeReplaceExt(java.io.Serializable value,
RMIObjectStreamClass descrip)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||