57 |
public static final byte BIG_ENDIAN = 0; |
public static final byte BIG_ENDIAN = 0; |
58 |
|
|
59 |
/** |
/** |
60 |
|
* The Little Endian (least siginificant byte first flag). |
61 |
|
*/ |
62 |
|
public static final byte LITTLE_ENDIAN = 1; |
63 |
|
|
64 |
|
/** |
65 |
* The byte buffer. |
* The byte buffer. |
66 |
*/ |
*/ |
67 |
public final aligningOutputStream buffer; |
public final aligningOutputStream buffer; |
72 |
public final org.omg.CORBA.portable.OutputStream parent; |
public final org.omg.CORBA.portable.OutputStream parent; |
73 |
|
|
74 |
/** |
/** |
75 |
* Create the EncapsulationOutput with the default buffer size |
* Create the EncapsulationOutput with the given parent stream |
76 |
* and the given parent stream. |
* and the specified encoding. |
77 |
*/ |
*/ |
78 |
public encapsulatedOutput(org.omg.CORBA.portable.OutputStream _parent) |
public encapsulatedOutput(org.omg.CORBA.portable.OutputStream _parent, |
79 |
|
boolean use_big_endian) |
80 |
{ |
{ |
81 |
super(); |
super(); |
82 |
buffer = new aligningOutputStream(); |
buffer = new aligningOutputStream(); |
83 |
setOutputStream(buffer); |
setOutputStream(buffer); |
84 |
parent = _parent; |
parent = _parent; |
85 |
write(BIG_ENDIAN); |
write(use_big_endian?BIG_ENDIAN:LITTLE_ENDIAN); |
86 |
} |
} |
87 |
|
|
88 |
/** |
/** |