public abstract class CDROutputStream extends OutputStream implements MarshalOutputStream, DataOutputStream, ValueOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected CorbaMessageMediator |
corbaMessageMediator |
protected ORB |
orb |
protected ORBUtilSystemException |
wrapper |
| Constructor and Description |
|---|
CDROutputStream(ORB orb,
GIOPVersion version,
byte encodingVersion,
boolean littleEndian,
BufferManagerWrite bufferManager,
byte streamFormatVersion) |
CDROutputStream(ORB orb,
GIOPVersion version,
byte encodingVersion,
boolean littleEndian,
BufferManagerWrite bufferManager,
byte streamFormatVersion,
boolean usePooledByteBuffers) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
_truncatable_ids()
Provides truncatable repository ids.
|
void |
alignOnBoundary(int octetBoundary) |
void |
close() |
abstract InputStream |
create_input_stream()
Returns an input stream with the same buffer.
|
protected CodeSetConversion.CTBConverter |
createCharCTBConverter() |
protected abstract CodeSetConversion.CTBConverter |
createWCharCTBConverter() |
void |
end_block() |
void |
end_value()
The end_value method ends any currently open chunk,
writes the end tag for the nested custom valuetype,
and decrements the valuetype nesting depth.
|
void |
flush() |
protected void |
freeInternalCaches() |
BufferManagerWrite |
getBufferManager() |
protected ByteBuffer |
getByteBuffer() |
ByteBufferWithInfo |
getByteBufferWithInfo() |
GIOPVersion |
getGIOPVersion() |
protected int |
getIndex() |
MessageMediator |
getMessageMediator() |
protected int |
getRealIndex(int index) |
protected int |
getSize() |
boolean |
isLittleEndian() |
protected boolean |
isSharing(ByteBuffer bb)
return true if our ByteBuffer is sharing/equal to bb
|
ORB |
orb()
Returns the ORB that created this OutputStream.
|
void |
putEndian() |
protected void |
setByteBuffer(ByteBuffer byteBuffer) |
protected void |
setByteBufferWithInfo(ByteBufferWithInfo bbwi) |
void |
setHeaderPadding(boolean headerPadding) |
protected void |
setIndex(int value) |
void |
setMessageMediator(MessageMediator messageMediator) |
void |
start_block() |
void |
start_value(String rep_id)
The start_value method ends any currently open chunk,
writes a valuetype header for a nested custom valuetype
(with a null codebase and the specified repository ID),
and increments the valuetype nesting depth.
|
byte[] |
toByteArray() |
void |
write_abstract_interface(Object obj)
Marshals a value object or a stub object.
|
void |
write_Abstract(Object value)
Writes the IDL Abstract interface type to the output stream.
|
void |
write_any_array(Any[] seq,
int offset,
int length)
Writes the array of IDL Anys from offset for length elements to the
output stream.
|
void |
write_any(Any value)
Writes an Any on this output stream.
|
void |
write_boolean_array(boolean[] value,
int offset,
int length)
Writes an array of booleans on this output stream.
|
void |
write_boolean(boolean value)
Writes a boolean value to this stream.
|
void |
write_char_array(char[] value,
int offset,
int length)
Writes an array of chars on this output stream.
|
void |
write_char(char value)
Writes a char value to this stream.
|
void |
write_Context(Context ctx,
ContextList contexts)
Writes a CORBA context on this stream.
|
void |
write_double_array(double[] value,
int offset,
int length)
Writes an array of doubles on this output stream.
|
void |
write_double(double value)
Writes a double value to this stream.
|
void |
write_fixed(BigDecimal value)
Writes a BigDecimal number.
|
void |
write_fixed(BigDecimal bigDecimal,
short digits,
short scale) |
void |
write_float_array(float[] value,
int offset,
int length)
Writes an array of floats on this output stream.
|
void |
write_float(float value)
Writes a float value to this stream.
|
void |
write_long_array(int[] value,
int offset,
int length)
Writes an array of CORBA longs (i.e.
|
void |
write_long(int value)
Writes a CORBA long (i.e.
|
void |
write_longlong_array(long[] value,
int offset,
int length)
Writes an array of CORBA longlongs (i.e.
|
void |
write_longlong(long value)
Writes a CORBA longlong (i.e.
|
void |
write_Object(Object value)
Writes a CORBA Object on this output stream.
|
void |
write_octet_array(byte[] value,
int offset,
int length)
Writes an array of CORBA octets (bytes) on this output stream.
|
void |
write_octet(byte value)
Writes a CORBA octet (i.e.
|
void |
write_Principal(Principal value)
Writes a Principle on this output stream.
|
void |
write_short_array(short[] value,
int offset,
int length)
Writes an array of shorts on this output stream.
|
void |
write_short(short value)
Writes a short value to this stream.
|
void |
write_string(String value)
Writes a string value to this stream.
|
void |
write_TypeCode(TypeCode value)
Writes a TypeCode on this output stream.
|
void |
write_ulong_array(int[] value,
int offset,
int length)
Writes an array of unsigned CORBA longs (i.e.
|
void |
write_ulong(int value)
Writes an unsigned CORBA long (i.e.
|
void |
write_ulonglong_array(long[] value,
int offset,
int length)
Writes an array of unsigned CORBA longlongs (i.e.
|
void |
write_ulonglong(long value)
Writes an unsigned CORBA longlong (i.e.
|
void |
write_ushort_array(short[] value,
int offset,
int length)
Writes an array of unsigned shorts on this output stream.
|
void |
write_ushort(short value)
Writes an unsigned short value to this stream.
|
void |
write_value(Serializable value)
Marshals a value type to the output stream.
|
void |
write_Value(Serializable value)
Writes the IDL value type value to the output stream.
|
void |
write_value(Serializable value,
BoxedValueHelper factory)
Marshals a value type to the output stream.
|
void |
write_value(Serializable value,
Class clz)
Marshals a value type to the output stream.
|
void |
write_value(Serializable value,
String repository_id)
Marshals a value type to the output stream.
|
void |
write_wchar_array(char[] value,
int offset,
int length)
Writes an array of wide chars on this output stream.
|
void |
write_wchar(char value)
Writes a wide char value to this stream.
|
void |
write_wstring(String value)
Writes a wide string value to this stream.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b)
Writes an integer (length of arrays) onto this stream.
|
void |
writeIndirection(int tag,
int posIndirectedTo) |
void |
writeOctetSequenceTo(OutputStream s) |
void |
writeTo(OutputStream s) |
protected ORB orb
protected ORBUtilSystemException wrapper
protected CorbaMessageMediator corbaMessageMediator
public CDROutputStream(ORB orb, GIOPVersion version, byte encodingVersion, boolean littleEndian, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers)
public CDROutputStream(ORB orb, GIOPVersion version, byte encodingVersion, boolean littleEndian, BufferManagerWrite bufferManager, byte streamFormatVersion)
public abstract InputStream create_input_stream()
OutputStreamcreate_input_stream in interface MarshalOutputStreamcreate_input_stream in class OutputStreampublic final void write_boolean(boolean value)
OutputStreamwrite_boolean in interface MarshalOutputStreamwrite_boolean in interface DataOutputStreamwrite_boolean in class OutputStreamvalue - the value to be written.public final void write_char(char value)
OutputStreamwrite_char in interface MarshalOutputStreamwrite_char in interface DataOutputStreamwrite_char in class OutputStreamvalue - the value to be written.public final void write_wchar(char value)
OutputStreamwrite_wchar in interface MarshalOutputStreamwrite_wchar in interface DataOutputStreamwrite_wchar in class OutputStreamvalue - the value to be written.public final void write_octet(byte value)
OutputStreamwrite_octet in interface MarshalOutputStreamwrite_octet in interface DataOutputStreamwrite_octet in class OutputStreamvalue - the value to be written.public final void write_short(short value)
OutputStreamwrite_short in interface MarshalOutputStreamwrite_short in interface DataOutputStreamwrite_short in class OutputStreamvalue - the value to be written.public final void write_ushort(short value)
OutputStreamwrite_ushort in interface MarshalOutputStreamwrite_ushort in interface DataOutputStreamwrite_ushort in class OutputStreamvalue - the value to be written.public final void write_long(int value)
OutputStreamwrite_long in interface MarshalOutputStreamwrite_long in interface DataOutputStreamwrite_long in class OutputStreamvalue - the value to be written.public final void write_ulong(int value)
OutputStreamwrite_ulong in interface MarshalOutputStreamwrite_ulong in interface DataOutputStreamwrite_ulong in class OutputStreamvalue - the value to be written.public final void write_longlong(long value)
OutputStreamwrite_longlong in interface MarshalOutputStreamwrite_longlong in interface DataOutputStreamwrite_longlong in class OutputStreamvalue - the value to be written.public final void write_ulonglong(long value)
OutputStreamwrite_ulonglong in interface MarshalOutputStreamwrite_ulonglong in interface DataOutputStreamwrite_ulonglong in class OutputStreamvalue - the value to be written.public final void write_float(float value)
OutputStreamwrite_float in interface MarshalOutputStreamwrite_float in interface DataOutputStreamwrite_float in class OutputStreamvalue - the value to be written.public final void write_double(double value)
OutputStreamwrite_double in interface MarshalOutputStreamwrite_double in interface DataOutputStreamwrite_double in class OutputStreamvalue - the value to be written.public final void write_string(String value)
OutputStreamwrite_string in interface MarshalOutputStreamwrite_string in interface DataOutputStreamwrite_string in class OutputStreamvalue - the value to be written.public final void write_wstring(String value)
OutputStreamwrite_wstring in interface MarshalOutputStreamwrite_wstring in interface DataOutputStreamwrite_wstring in class OutputStreamvalue - the value to be written.public final void write_boolean_array(boolean[] value,
int offset,
int length)
OutputStreamwrite_boolean_array in interface MarshalOutputStreamwrite_boolean_array in interface DataOutputStreamwrite_boolean_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_char_array(char[] value,
int offset,
int length)
OutputStreamwrite_char_array in interface MarshalOutputStreamwrite_char_array in interface DataOutputStreamwrite_char_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_wchar_array(char[] value,
int offset,
int length)
OutputStreamwrite_wchar_array in interface MarshalOutputStreamwrite_wchar_array in interface DataOutputStreamwrite_wchar_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_octet_array(byte[] value,
int offset,
int length)
OutputStreamwrite_octet_array in interface MarshalOutputStreamwrite_octet_array in interface DataOutputStreamwrite_octet_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_short_array(short[] value,
int offset,
int length)
OutputStreamwrite_short_array in interface MarshalOutputStreamwrite_short_array in interface DataOutputStreamwrite_short_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_ushort_array(short[] value,
int offset,
int length)
OutputStreamwrite_ushort_array in interface MarshalOutputStreamwrite_ushort_array in interface DataOutputStreamwrite_ushort_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_long_array(int[] value,
int offset,
int length)
OutputStreamwrite_long_array in interface MarshalOutputStreamwrite_long_array in interface DataOutputStreamwrite_long_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_ulong_array(int[] value,
int offset,
int length)
OutputStreamwrite_ulong_array in interface MarshalOutputStreamwrite_ulong_array in interface DataOutputStreamwrite_ulong_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_longlong_array(long[] value,
int offset,
int length)
OutputStreamwrite_longlong_array in interface MarshalOutputStreamwrite_longlong_array in interface DataOutputStreamwrite_longlong_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_ulonglong_array(long[] value,
int offset,
int length)
OutputStreamwrite_ulonglong_array in interface MarshalOutputStreamwrite_ulonglong_array in interface DataOutputStreamwrite_ulonglong_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_float_array(float[] value,
int offset,
int length)
OutputStreamwrite_float_array in interface MarshalOutputStreamwrite_float_array in interface DataOutputStreamwrite_float_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_double_array(double[] value,
int offset,
int length)
OutputStreamwrite_double_array in interface MarshalOutputStreamwrite_double_array in interface DataOutputStreamwrite_double_array in class OutputStreamvalue - the array to be written.offset - offset on the stream.length - length of buffer to write.public final void write_Object(Object value)
OutputStreamwrite_Object in interface MarshalOutputStreamwrite_Object in interface DataOutputStreamwrite_Object in class OutputStreamvalue - the value to be written.public final void write_TypeCode(TypeCode value)
OutputStreamwrite_TypeCode in interface MarshalOutputStreamwrite_TypeCode in interface DataOutputStreamwrite_TypeCode in class OutputStreamvalue - the value to be written.public final void write_any(Any value)
OutputStreamwrite_any in interface MarshalOutputStreamwrite_any in interface DataOutputStreamwrite_any in class OutputStreamvalue - the value to be written.public final void write_Principal(Principal value)
OutputStreamwrite_Principal in interface MarshalOutputStreamwrite_Principal in class OutputStreamvalue - the value to be written.public final void write(int b)
throws IOException
OutputStreamwrite in class OutputStreamb - the value to be written.IOException - if there is an input/output errorportable
package comments for unimplemented featurespublic final void write_fixed(BigDecimal value)
OutputStreamwrite_fixed in class OutputStreamvalue - a BidDecimal--value to be written.public final void write_Context(Context ctx, ContextList contexts)
OutputStreamwrite_Context in class OutputStreamctx - a CORBA contextcontexts - a ContextList object containing the list of contexts
to be writtenportable
package comments for unimplemented featurespublic final ORB orb()
OutputStreamorb in class OutputStreamportable
package comments for unimplemented featurespublic final void write_value(Serializable value)
OutputStreamwrite_value in interface MarshalOutputStreamwrite_value in class OutputStreamvalue - is the acutal value to writepublic final void write_value(Serializable value, Class clz)
OutputStreamwrite_value in class OutputStreamvalue - is the acutal value to writeclz - is the declared type of the value to be marshaledpublic final void write_value(Serializable value, String repository_id)
OutputStreamwrite_value in class OutputStreamvalue - is the acutal value to writerepository_id - identifies the type of the value type to
be marshaledpublic final void write_value(Serializable value, BoxedValueHelper factory)
OutputStreamwrite_value in class OutputStreamvalue - is the acutal value to writefactory - is the instance of the helper to be used for marshaling
the boxed valuepublic final void write_abstract_interface(Object obj)
OutputStreamwrite_abstract_interface in class OutputStreamobj - the actual value object to marshal or the stub to be marshalledpublic final void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic final void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic final void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic final void start_block()
start_block in interface MarshalOutputStreampublic final void end_block()
end_block in interface MarshalOutputStreampublic final void putEndian()
putEndian in interface MarshalOutputStreampublic void writeTo(OutputStream s) throws IOException
writeTo in interface MarshalOutputStreamIOExceptionpublic final byte[] toByteArray()
toByteArray in interface MarshalOutputStreampublic final void write_Abstract(Object value)
DataOutputStreamwrite_Abstract in interface DataOutputStreamvalue - The value to be written.public final void write_Value(Serializable value)
DataOutputStreamwrite_Value in interface DataOutputStreamvalue - The value to be written.public final void write_any_array(Any[] seq, int offset, int length)
DataOutputStreamwrite_any_array in interface DataOutputStreamseq - The array to be written.offset - The index into seq of the first element to write to the
output stream.length - The number of elements to write to the output stream.public void setMessageMediator(MessageMediator messageMediator)
public MessageMediator getMessageMediator()
public final String[] _truncatable_ids()
ValueBase_truncatable_ids in interface ValueBaseprotected final int getSize()
protected final int getIndex()
protected int getRealIndex(int index)
protected final void setIndex(int value)
protected final ByteBuffer getByteBuffer()
protected final void setByteBuffer(ByteBuffer byteBuffer)
protected final boolean isSharing(ByteBuffer bb)
public final boolean isLittleEndian()
public ByteBufferWithInfo getByteBufferWithInfo()
protected void setByteBufferWithInfo(ByteBufferWithInfo bbwi)
public final BufferManagerWrite getBufferManager()
public final void write_fixed(BigDecimal bigDecimal, short digits, short scale)
public final void writeOctetSequenceTo(OutputStream s)
public final GIOPVersion getGIOPVersion()
public final void writeIndirection(int tag,
int posIndirectedTo)
protected CodeSetConversion.CTBConverter createCharCTBConverter()
protected abstract CodeSetConversion.CTBConverter createWCharCTBConverter()
protected final void freeInternalCaches()
public void alignOnBoundary(int octetBoundary)
public void setHeaderPadding(boolean headerPadding)
public void start_value(String rep_id)
ValueOutputStreamstart_value in interface ValueOutputStreampublic void end_value()
ValueOutputStreamend_value in interface ValueOutputStreamCopyright © 2018 JBoss by Red Hat. All rights reserved.