|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.omg.CORBA.portable.OutputStream
org.omg.CORBA_2_3.portable.OutputStream
org.openorb.orb.iiop.CDROutputStream
This class implements CDR for IIOP
Constructor Summary | |
CDROutputStream(org.omg.CORBA.ORB orb,
org.omg.GIOP.Version version,
MarshalBuffer buf)
Constructor used by message level, fragments may be sent as elements are appended to the stream, so create_input_stream is disallowed. |
Method Summary | |
void |
alignment(int align)
Set alignment into the buffer |
void |
begin_encapsulation()
Begin an encapsulated block. |
void |
close()
Complete marshaling a message. |
org.omg.CORBA.portable.InputStream |
create_input_stream()
This operation is not implemented. |
void |
enableLogging(Logger logger)
|
void |
end_encapsulation()
End an encapsulated block. |
void |
flush()
Does nothing. |
protected Logger |
getLogger()
|
MarshalBuffer |
getMarshalBuffer()
|
RMIObjectStreamClass |
getObjectStreamClass()
Used by the value handler. |
int |
index()
Current index into the buffer. |
org.omg.CORBA.ORB |
orb()
Get the orb associated with the stream. |
void |
pending_alignment(int align)
The next call to align will result in aligning to the specified boundary if the reuested alignment is smaller. |
void |
setCodesets(int tcsc,
int tcsw)
|
protected boolean |
value_extended_custom(java.io.Serializable value)
This fuction should be overloaded by base types. |
protected java.lang.String[] |
value_extended_get_IDs(java.io.Serializable value)
This function should be overloaded by base types to allow marshaling of extended value types, RMI over IIOP for example. |
protected void |
value_extended_marshal(java.io.Serializable value)
This function should be overloaded by base types to allow marshaling of extended value types, RMI over IIOP for example. |
protected java.io.Serializable |
value_extended_replace(java.io.Serializable value)
Can be overloaded to allow write replacement of target. |
org.omg.GIOP.Version |
version()
Return the CDR protocol version |
void |
write_abstract_interface(java.lang.Object obj)
Write an abstract interface |
void |
write_any(org.omg.CORBA.Any val)
Add an CORBA any to the stream. |
void |
write_boolean_array(boolean[] val,
int off,
int len)
Write an array of boolean values. |
void |
write_boolean(boolean val)
Append boolean value |
void |
write_char_array(char[] val,
int off,
int len)
Write an array of char values. |
void |
write_char(char val)
Add an IDL char into the steam. |
void |
write_Context(org.omg.CORBA.Context ctx,
org.omg.CORBA.ContextList contexts)
Write operation context list. |
void |
write_double_array(double[] val,
int off,
int len)
Add an IDL double array into the stream |
void |
write_double(double val)
Add an IDL double into the stream |
void |
write_fixed(java.math.BigDecimal val)
Deprecated. Loses scale and precision, see http://www.omg.org/issues/issue3431.txt |
void |
write_fixed(java.math.BigDecimal val,
short digits,
short scale)
Write fixed value. |
void |
write_fixed(java.math.BigDecimal val,
org.omg.CORBA.TypeCode tc)
Write fixed value. |
void |
write_float_array(float[] val,
int off,
int len)
Add an IDL float array into the stream |
void |
write_float(float val)
Add an IDL float into the stream |
void |
write_long_array(int[] val,
int off,
int len)
Add an IDL long array into the stream |
void |
write_long(int val)
Add an IDL long into the stream |
void |
write_longlong_array(long[] val,
int off,
int len)
Add an IDL long long array into the stream |
void |
write_longlong(long val)
Add an IDL long long into the stream |
void |
write_Object(org.omg.CORBA.Object val)
Add an CORBA Object reference to the stream. |
void |
write_octet_array(byte[] val,
int off,
int len)
Add an IDL octet array into the stream |
void |
write_octet(byte val)
Add an IDL octet into the stream |
void |
write_Principal(org.omg.CORBA.Principal val)
Write principal. |
void |
write_short_array(short[] val,
int off,
int len)
Add an IDL short array |
void |
write_short(short val)
Add an IDL short into the stream |
void |
write_string(java.lang.String val)
Add an IDL string into the stream |
void |
write_TypeCode(org.omg.CORBA.TypeCode val)
Add an CORBA TypeCode to the stream. |
void |
write_ulong_array(int[] val,
int off,
int len)
Add an IDL unsigned long array into the stream |
void |
write_ulong(int val)
Add a IDL unsigned long into the stream |
void |
write_ulonglong_array(long[] val,
int off,
int len)
Add an IDL unsigned long long array into the stream |
void |
write_ulonglong(long val)
Add an IDL unsigned long long into the stream |
void |
write_ushort_array(short[] val,
int offset,
int length)
Add an IDL unsigned short array into the stream |
void |
write_ushort(short val)
Add an IDL unsigned short into the stream |
void |
write_value(java.io.Serializable value)
Write a value to a CDR stream |
void |
write_value(java.io.Serializable value,
org.omg.CORBA.portable.BoxedValueHelper boxhelp)
Write a value from a CDR stream |
void |
write_value(java.io.Serializable value,
java.lang.Class clz)
Write a value to a CDR stream |
void |
write_value(java.io.Serializable value,
java.lang.String arg_repo_id)
Write a value from a CDR stream |
void |
write_wchar_array(char[] val,
int off,
int len)
Add an IDL wide char array |
void |
write_wchar(char val)
Add an IDL wide char into the stream |
void |
write_wstring(java.lang.String val)
Add an IDL wstring into the stream |
void |
write(byte[] buf)
Write a buffer into the stream |
void |
write(byte[] buf,
int off,
int len)
Write a buffer into the stream |
void |
write(int val)
Write a simple value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CDROutputStream(org.omg.CORBA.ORB orb, org.omg.GIOP.Version version, MarshalBuffer buf)
Method Detail |
public void enableLogging(Logger logger)
protected Logger getLogger()
public MarshalBuffer getMarshalBuffer()
public void setCodesets(int tcsc, int tcsw)
public org.omg.CORBA.ORB orb()
orb
in interface ExtendedOutputStream
public org.omg.GIOP.Version version()
public void alignment(int align)
public void pending_alignment(int align)
public int index()
public void begin_encapsulation()
public void end_encapsulation()
public void write(int val)
public void write(byte[] buf)
public void write(byte[] buf, int off, int len)
public void close()
public void flush()
public org.omg.CORBA.portable.InputStream create_input_stream()
ListOutputStream
class if typed streaming is
required or read fragments from an underlying marshal buffer for byte
oriented data.
public void write_boolean(boolean val)
public void write_octet(byte val)
public void write_char(char val)
public void write_wchar(char val)
public void write_short(short val)
public void write_ushort(short val)
public void write_long(int val)
public void write_ulong(int val)
public void write_longlong(long val)
public void write_ulonglong(long val)
public void write_float(float val)
public void write_double(double val)
public void write_string(java.lang.String val)
public void write_wstring(java.lang.String val)
public void write_boolean_array(boolean[] val, int off, int len)
public void write_char_array(char[] val, int off, int len)
public void write_wchar_array(char[] val, int off, int len)
public void write_octet_array(byte[] val, int off, int len)
public void write_short_array(short[] val, int off, int len)
public void write_ushort_array(short[] val, int offset, int length)
public void write_long_array(int[] val, int off, int len)
public void write_ulong_array(int[] val, int off, int len)
public void write_longlong_array(long[] val, int off, int len)
public void write_ulonglong_array(long[] val, int off, int len)
public void write_float_array(float[] val, int off, int len)
public void write_double_array(double[] val, int off, int len)
public void write_Object(org.omg.CORBA.Object val)
public void write_TypeCode(org.omg.CORBA.TypeCode val)
public void write_any(org.omg.CORBA.Any val)
public void write_Principal(org.omg.CORBA.Principal val)
public void write_fixed(java.math.BigDecimal val)
public void write_fixed(java.math.BigDecimal val, org.omg.CORBA.TypeCode tc)
write_fixed
in interface ExtendedOutputStream
public void write_fixed(java.math.BigDecimal val, short digits, short scale)
write_fixed
in interface ExtendedOutputStream
public void write_Context(org.omg.CORBA.Context ctx, org.omg.CORBA.ContextList contexts)
public void write_value(java.io.Serializable value)
public void write_value(java.io.Serializable value, java.lang.String arg_repo_id)
public void write_value(java.io.Serializable value, java.lang.Class clz)
public void write_value(java.io.Serializable value, org.omg.CORBA.portable.BoxedValueHelper boxhelp)
protected java.io.Serializable value_extended_replace(java.io.Serializable value)
protected java.lang.String[] value_extended_get_IDs(java.io.Serializable value)
protected boolean value_extended_custom(java.io.Serializable value)
protected void value_extended_marshal(java.io.Serializable value)
public void write_abstract_interface(java.lang.Object obj)
public RMIObjectStreamClass getObjectStreamClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |