Class CDRStream
- java.lang.Object
-
- org.wildfly.iiop.openjdk.rmi.marshal.CDRStream
-
public class CDRStream extends Object
Utility class with static methods to:- get the
CDRStreamReaderfor a given class - get the
CDRStreamWriterfor a given class
CDRStreamReaders andCDRStreamWriters returned by these methods are instances of static inner classes defined byCDRStream.- Author:
- Francisco Reverbel
- get the
-
-
Constructor Summary
Constructors Constructor Description CDRStream()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringabbrevFor(Class clz)Returns the abbreviated name of the marshaller for givenClass.static CDRStreamReaderreaderFor(Class clz)Returns theCDRStreamReaderfor a givenClass.static CDRStreamReaderreaderFor(String s, ClassLoader cl)Returns aCDRStreamReadergiven an abbreviated name and aClassLoaderfor valuetype classes.static CDRStreamWriterwriterFor(Class clz)Returns theCDRStreamWriterfor a givenClass.static CDRStreamWriterwriterFor(String s, ClassLoader cl)Returns aCDRStreamWritergiven an abbreviated name and aClassLoaderfor valuetype classes.
-
-
-
Method Detail
-
abbrevFor
public static String abbrevFor(Class clz)
Returns the abbreviated name of the marshaller for givenClass.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
Foois the string"LFoo".
-
readerFor
public static CDRStreamReader readerFor(String s, ClassLoader cl)
Returns aCDRStreamReadergiven an abbreviated name and aClassLoaderfor valuetype classes.
-
writerFor
public static CDRStreamWriter writerFor(String s, ClassLoader cl)
Returns aCDRStreamWritergiven an abbreviated name and aClassLoaderfor valuetype classes.
-
readerFor
public static CDRStreamReader readerFor(Class clz)
Returns theCDRStreamReaderfor a givenClass.
-
writerFor
public static CDRStreamWriter writerFor(Class clz)
Returns theCDRStreamWriterfor a givenClass.
-
-