Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.rmi.CORBA
Interface ValueHandler  view ValueHandler download ValueHandler.java

All Known Subinterfaces:
ValueHandlerMultiFormat

public interface ValueHandler

Serializes Java objects to and from CDR (GIOP) streams. The working instance of the value handler is returned by Util.createValueHandler() 55 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
 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.
 

Method Detail

getRMIRepositoryID

public java.lang.String getRMIRepositoryID(java.lang.Class clz)
Get CORBA repository Id for the given java class. The syntax of the repository ID is the initial ?RMI:?, followed by the Java class name, followed by name, followed by a hash code string, followed optionally by a serialization version UID string. For Java identifiers that contain illegal OMG IDL identifier characters such as ?$?, any such illegal characters are replaced by ?\U? followed by the 4 hexadecimal characters (in upper case) representing the Unicode value.


getRunTimeCodeBase

public org.omg.SendingContext.RunTime getRunTimeCodeBase()
Returns the CodeBase for this ValueHandler.


isCustomMarshaled

public boolean isCustomMarshaled(java.lang.Class clz)
Indicates that the given class is responsible itself for writing its content to the stream. Such classes implement either org.omg.CORBA.portable.Streamable (default marshalling, generated by IDL-to-java compiler) or org.omg.CORBA.CustomMarshal (the user-programmed marshalling).


readValue

public 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. The fields of the class being written will be accessed using reflection.


writeReplace

public java.io.Serializable writeReplace(java.io.Serializable value)
When the value provides the writeReplace method, the result of this method is written. Otherwise, the value itself is written.


writeValue

public void writeValue(org.omg.CORBA.portable.OutputStream out,
                       java.io.Serializable value)
Write value to CORBA output stream using java senmatics.