org.objectweb.david.libs.presentation.portable
Class PortableMarshallerFactory.PortableMarshallerL
java.lang.Object
|
+--java.io.OutputStream
|
+--org.omg.CORBA.portable.OutputStream
|
+--org.omg.CORBA_2_3.portable.OutputStream
|
+--org.objectweb.david.apis.presentation.DavidOutputStream
|
+--org.objectweb.david.libs.presentation.portable.PortableMarshallerFactory.PortableMarshaller
|
+--org.objectweb.david.libs.presentation.portable.PortableMarshallerFactory.PortableMarshallerL
- All Implemented Interfaces:
- org.objectweb.david.libs.presentation.portable.Constants, DataOutputStream, Marshaller
- Enclosing class:
- PortableMarshallerFactory
- public class PortableMarshallerFactory.PortableMarshallerL
- extends PortableMarshallerFactory.PortableMarshaller
PortableMarshallerL is a little endian implementation of Marshaller,
extending PortableMarshaller.
| 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 |
|
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(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortableMarshallerFactory.PortableMarshallerL
public PortableMarshallerFactory.PortableMarshallerL()
- Creates a new little endian PortableMarshaller.
writeChar16
public void writeChar16(char v)
throws JonathanException
- Writes a char in a message.
- Parameters:
v - a char;- Throws:
JonathanException - if an error occurs.
writeShort
public void writeShort(short v)
throws JonathanException
- Writes a short in a message.
- Parameters:
v - a short;- Throws:
JonathanException - if an error occurs.
writeInt
public void writeInt(int v)
throws JonathanException
- Writes an int in a message.
- Parameters:
v - an int;- Throws:
JonathanException - if an error occurs.
writeLong
public void writeLong(long v)
throws JonathanException
- Writes a long in a message.
- Parameters:
v - a long;- Throws:
JonathanException - if an error occurs.
writeFloat
public void writeFloat(float v)
throws JonathanException
- Writes a float in a message.
- Parameters:
v - a float;- Throws:
JonathanException - if an error occurs.
writeDouble
public void writeDouble(double v)
throws JonathanException
- Writes a double in a message.
- Parameters:
v - a double;- Throws:
JonathanException - if an error occurs.
writeString16
public void writeString16(String str)
throws JonathanException
- Description copied from interface:
Marshaller
- Writes a string of 16 bits chars.
- Following copied from interface:
org.objectweb.jonathan.apis.presentation.Marshaller
- Parameters:
s - a string;- Throws:
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)
- Overrides:
write_wchar_array in class OutputStream
write_short_array
public void write_short_array(short[] array,
int off,
int len)
- Overrides:
write_short_array in class OutputStream
write_ushort_array
public final void write_ushort_array(short[] array,
int off,
int len)
- Overrides:
write_ushort_array in class OutputStream
write_long_array
public void write_long_array(int[] array,
int off,
int len)
- Overrides:
write_long_array in class OutputStream
write_ulong_array
public final void write_ulong_array(int[] array,
int off,
int len)
- Overrides:
write_ulong_array in class OutputStream
write_longlong_array
public void write_longlong_array(long[] array,
int off,
int len)
- Overrides:
write_longlong_array in class OutputStream
write_ulonglong_array
public final void write_ulonglong_array(long[] array,
int off,
int len)
- Overrides:
write_ulonglong_array in class OutputStream
write_float_array
public void write_float_array(float[] array,
int off,
int len)
- Overrides:
write_float_array in class OutputStream
write_double_array
public void write_double_array(double[] array,
int off,
int len)
- Overrides:
write_double_array in class OutputStream