org.objectweb.david.libs.presentation.portable
Class PortableMarshallerFactory.PortableMarshallerL

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.omg.CORBA.portable.OutputStream
          extended byorg.omg.CORBA_2_3.portable.OutputStream
              extended byorg.objectweb.david.apis.presentation.DavidOutputStream
                  extended byorg.objectweb.david.libs.presentation.portable.PortableMarshallerFactory.PortableMarshaller
                      extended byorg.objectweb.david.libs.presentation.portable.PortableMarshallerFactory.PortableMarshallerL
All Implemented Interfaces:
org.objectweb.david.libs.presentation.portable.Constants, org.omg.CORBA.DataOutputStream, Marshaller
Enclosing class:
PortableMarshallerFactory

public class PortableMarshallerFactory.PortableMarshallerL
extends PortableMarshallerFactory.PortableMarshaller

PortableMarshallerL is a little endian implementation of Marshaller, extending PortableMarshaller.


Field Summary
 
Fields inherited from class org.objectweb.david.libs.presentation.portable.PortableMarshallerFactory.PortableMarshaller
CHUNKS, CODEBASE, current, encapsulation_start, first, INDIRECTION_TAG, MULTIPLE_TYPES, NULL_TAG, offset, prev_size, SINGLE_TYPE, top, VALUE_TAG
 
Constructor Summary
PortableMarshallerFactory.PortableMarshallerL()
          Creates a new little endian PortableMarshaller.
 
Method Summary
 boolean isLittleEndian()
          Returns true if this marshaller is little endian, else false.
 void write_double_array(double[] array, int off, int len)
           
 void write_float_array(float[] array, int off, int len)
           
 void write_long_array(int[] array, int off, int len)
           
 void write_longlong_array(long[] array, int off, int len)
           
 void write_short_array(short[] array, int off, int len)
           
 void write_ulong_array(int[] array, int off, int len)
           
 void write_ulonglong_array(long[] array, int off, int len)
           
 void write_ushort_array(short[] array, int off, int len)
           
 void write_wchar_array(char[] array, int off, int len)
           
 void writeChar16(char v)
          Writes a char in a message.
 void writeDouble(double v)
          Writes a double in a message.
 void writeFloat(float v)
          Writes a float in a message.
 void writeInt(int v)
          Writes an int in a message.
 void writeLong(long v)
          Writes a long in a message.
 void writeShort(short v)
          Writes a short in a message.
 void writeString16(java.lang.String str)
          Writes a string of 16 bits chars.
 
Methods inherited from class org.objectweb.david.libs.presentation.portable.PortableMarshallerFactory.PortableMarshaller
close, create_input_stream, endEncapsulation, getContext, getOffset, getState, orb, outputStream, prepare, reset, sameContents, setOffset, startEncapsulation, write_abstract_interface, write_Abstract, write_any_array, write_any, write_boolean_array, write_boolean, write_char_array, write_char, write_double, write_float, write_long, write_longdouble, write_longlong, write_Object, write_octet_array, write_octet, write_short, write_string, write_TypeCode, write_ulong, write_ulonglong, write_ushort, write_value, write_Value, write_value, write_value, write_value, write_wchar, write_wstring, write, write, write, writeBoolean, writeByte, writeByteArray, writeChar8, writePadding, writeReference, writeString8, writeValue
 
Methods inherited from class org.objectweb.david.apis.presentation.DavidOutputStream
_truncatable_ids, write_Principal
 
Methods inherited from class org.omg.CORBA.portable.OutputStream
write_Context, write_fixed
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortableMarshallerFactory.PortableMarshallerL

public PortableMarshallerFactory.PortableMarshallerL()
Creates a new little endian PortableMarshaller.

Method Detail

writeChar16

public void writeChar16(char v)
                 throws org.objectweb.jonathan.apis.kernel.JonathanException
Writes a char in a message.

Parameters:
v - a char;
Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if an error occurs.

writeShort

public void writeShort(short v)
                throws org.objectweb.jonathan.apis.kernel.JonathanException
Writes a short in a message.

Parameters:
v - a short;
Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if an error occurs.

writeInt

public void writeInt(int v)
              throws org.objectweb.jonathan.apis.kernel.JonathanException
Writes an int in a message.

Parameters:
v - an int;
Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if an error occurs.

writeLong

public void writeLong(long v)
               throws org.objectweb.jonathan.apis.kernel.JonathanException
Writes a long in a message.

Parameters:
v - a long;
Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if an error occurs.

writeFloat

public void writeFloat(float v)
                throws org.objectweb.jonathan.apis.kernel.JonathanException
Writes a float in a message.

Parameters:
v - a float;
Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if an error occurs.

writeDouble

public void writeDouble(double v)
                 throws org.objectweb.jonathan.apis.kernel.JonathanException
Writes a double in a message.

Parameters:
v - a double;
Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if an error occurs.

writeString16

public void writeString16(java.lang.String str)
                   throws org.objectweb.jonathan.apis.kernel.JonathanException
Description copied from interface: Marshaller
Writes a string of 16 bits chars.

Parameters:
str - a string;
Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if a marshal error occurred.

isLittleEndian

public final boolean isLittleEndian()
Returns true if this marshaller is little endian, else false.

Returns:
true.

write_wchar_array

public void write_wchar_array(char[] array,
                              int off,
                              int len)

write_short_array

public void write_short_array(short[] array,
                              int off,
                              int len)

write_ushort_array

public final void write_ushort_array(short[] array,
                                     int off,
                                     int len)

write_long_array

public void write_long_array(int[] array,
                             int off,
                             int len)

write_ulong_array

public final void write_ulong_array(int[] array,
                                    int off,
                                    int len)

write_longlong_array

public void write_longlong_array(long[] array,
                                 int off,
                                 int len)

write_ulonglong_array

public final void write_ulonglong_array(long[] array,
                                        int off,
                                        int len)

write_float_array

public void write_float_array(float[] array,
                              int off,
                              int len)

write_double_array

public void write_double_array(double[] array,
                               int off,
                               int len)