Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » iiop » rmi » marshal » [javadoc | source]
org.jboss.iiop.rmi.marshal
public class: CDRStream [javadoc | source]
java.lang.Object
   org.jboss.iiop.rmi.marshal.CDRStream
Utility class with static methods to: The CDRStreamReaders and CDRStreamWriters returned by these methods are instances of static inner classes defined by CDRStream.
Method from org.jboss.iiop.rmi.marshal.CDRStream Summary:
abbrevFor,   readerFor,   readerFor,   writerFor,   writerFor
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.iiop.rmi.marshal.CDRStream Detail:
 public static String abbrevFor(Class clz) 
    Returns the abbreviated name of the marshaller for given Class.

    Abbreviated names of marshallers for basic types follow the usual Java convention:

    type abbrev name
    boolean "Z"
    byte "B"
    char "C"
    double "D"
    float "F"
    int "I"
    long "J"
    short "S"
    void "V"
    

    The abbreviated names of marshallers for object types are:

    java.lang.String "G" (strinG)
    RMI remote interface "R" + interfaceName
    RMI abstract interface "A"
    serializable "E" (sErializablE)
    valuetype "L" + className
    externalizable "X" (eXternalizable)
    org.omg.CORBA.Object "M" (oMg)
    IDL interface "N" + interfaceName
    java.lang.Object "O"
    

    As an example: the abbreviated name of a marshaller for a valuetype class named Foo is the string "LFoo".

 public static CDRStreamReader readerFor(Class clz) 
    Returns the CDRStreamReader for a given Class.
 public static CDRStreamReader readerFor(String s,
    ClassLoader cl) 
    Returns a CDRStreamReader given an abbreviated name and a ClassLoader for valuetype classes.
 public static CDRStreamWriter writerFor(Class clz) 
    Returns the CDRStreamWriter for a given Class.
 public static CDRStreamWriter writerFor(String s,
    ClassLoader cl) 
    Returns a CDRStreamWriter given an abbreviated name and a ClassLoader for valuetype classes.