站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 iiop API Documentation 英文版文档

CDRStream (JBoss IIOP Plugin API) - JBoss 4.0.1 sp1 iiop API Documentation 英文版文档


org.jboss.iiop.rmi.marshal
Class CDRStream

java.lang.Object
  extended byorg.jboss.iiop.rmi.marshal.CDRStream

public class CDRStream
extends Object

Utility class with static methods to:

The CDRStreamReaders and CDRStreamWriters returned by these methods are instances of static inner classes defined by CDRStream.

Version:
$Revision: 1.10 $
Author:
Francisco Reverbel

Constructor Summary
CDRStream()
           
 
Method Summary
static String abbrevFor(Class clz)
          Returns the abbreviated name of the marshaller for given Class.
static CDRStreamReader readerFor(Class clz)
          Returns the CDRStreamReader for a given Class.
static CDRStreamReader readerFor(String s, ClassLoader cl)
          Returns a CDRStreamReader given an abbreviated name and a ClassLoader for valuetype classes.
static CDRStreamWriter writerFor(Class clz)
          Returns the CDRStreamWriter for a given Class.
static CDRStreamWriter writerFor(String s, ClassLoader cl)
          Returns a CDRStreamWriter given an abbreviated name and a ClassLoader for valuetype classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDRStream

public CDRStream()
Method Detail

abbrevFor

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".


readerFor

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


writerFor

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


readerFor

public static CDRStreamReader readerFor(Class clz)
Returns the CDRStreamReader for a given Class.


writerFor

public static CDRStreamWriter writerFor(Class clz)
Returns the CDRStreamWriter for a given Class.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.