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()
OutputStream
create_input_stream
in interface MarshalOutputStream
create_input_stream
in class OutputStream
public final void write_boolean(boolean value)
OutputStream
write_boolean
in interface MarshalOutputStream
write_boolean
in interface DataOutputStream
write_boolean
in class OutputStream
value
- the value to be written.public final void write_char(char value)
OutputStream
write_char
in interface MarshalOutputStream
write_char
in interface DataOutputStream
write_char
in class OutputStream
value
- the value to be written.public final void write_wchar(char value)
OutputStream
write_wchar
in interface MarshalOutputStream
write_wchar
in interface DataOutputStream
write_wchar
in class OutputStream
value
- the value to be written.public final void write_octet(byte value)
OutputStream
write_octet
in interface MarshalOutputStream
write_octet
in interface DataOutputStream
write_octet
in class OutputStream
value
- the value to be written.public final void write_short(short value)
OutputStream
write_short
in interface MarshalOutputStream
write_short
in interface DataOutputStream
write_short
in class OutputStream
value
- the value to be written.public final void write_ushort(short value)
OutputStream
write_ushort
in interface MarshalOutputStream
write_ushort
in interface DataOutputStream
write_ushort
in class OutputStream
value
- the value to be written.public final void write_long(int value)
OutputStream
write_long
in interface MarshalOutputStream
write_long
in interface DataOutputStream
write_long
in class OutputStream
value
- the value to be written.public final void write_ulong(int value)
OutputStream
write_ulong
in interface MarshalOutputStream
write_ulong
in interface DataOutputStream
write_ulong
in class OutputStream
value
- the value to be written.public final void write_longlong(long value)
OutputStream
write_longlong
in interface MarshalOutputStream
write_longlong
in interface DataOutputStream
write_longlong
in class OutputStream
value
- the value to be written.public final void write_ulonglong(long value)
OutputStream
write_ulonglong
in interface MarshalOutputStream
write_ulonglong
in interface DataOutputStream
write_ulonglong
in class OutputStream
value
- the value to be written.public final void write_float(float value)
OutputStream
write_float
in interface MarshalOutputStream
write_float
in interface DataOutputStream
write_float
in class OutputStream
value
- the value to be written.public final void write_double(double value)
OutputStream
write_double
in interface MarshalOutputStream
write_double
in interface DataOutputStream
write_double
in class OutputStream
value
- the value to be written.public final void write_string(String value)
OutputStream
write_string
in interface MarshalOutputStream
write_string
in interface DataOutputStream
write_string
in class OutputStream
value
- the value to be written.public final void write_wstring(String value)
OutputStream
write_wstring
in interface MarshalOutputStream
write_wstring
in interface DataOutputStream
write_wstring
in class OutputStream
value
- the value to be written.public final void write_boolean_array(boolean[] value, int offset, int length)
OutputStream
write_boolean_array
in interface MarshalOutputStream
write_boolean_array
in interface DataOutputStream
write_boolean_array
in class OutputStream
value
- 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)
OutputStream
write_char_array
in interface MarshalOutputStream
write_char_array
in interface DataOutputStream
write_char_array
in class OutputStream
value
- 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)
OutputStream
write_wchar_array
in interface MarshalOutputStream
write_wchar_array
in interface DataOutputStream
write_wchar_array
in class OutputStream
value
- 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)
OutputStream
write_octet_array
in interface MarshalOutputStream
write_octet_array
in interface DataOutputStream
write_octet_array
in class OutputStream
value
- 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)
OutputStream
write_short_array
in interface MarshalOutputStream
write_short_array
in interface DataOutputStream
write_short_array
in class OutputStream
value
- 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)
OutputStream
write_ushort_array
in interface MarshalOutputStream
write_ushort_array
in interface DataOutputStream
write_ushort_array
in class OutputStream
value
- 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)
OutputStream
write_long_array
in interface MarshalOutputStream
write_long_array
in interface DataOutputStream
write_long_array
in class OutputStream
value
- 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)
OutputStream
write_ulong_array
in interface MarshalOutputStream
write_ulong_array
in interface DataOutputStream
write_ulong_array
in class OutputStream
value
- 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)
OutputStream
write_longlong_array
in interface MarshalOutputStream
write_longlong_array
in interface DataOutputStream
write_longlong_array
in class OutputStream
value
- 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)
OutputStream
write_ulonglong_array
in interface MarshalOutputStream
write_ulonglong_array
in interface DataOutputStream
write_ulonglong_array
in class OutputStream
value
- 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)
OutputStream
write_float_array
in interface MarshalOutputStream
write_float_array
in interface DataOutputStream
write_float_array
in class OutputStream
value
- 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)
OutputStream
write_double_array
in interface MarshalOutputStream
write_double_array
in interface DataOutputStream
write_double_array
in class OutputStream
value
- the array to be written.offset
- offset on the stream.length
- length of buffer to write.public final void write_Object(Object value)
OutputStream
write_Object
in interface MarshalOutputStream
write_Object
in interface DataOutputStream
write_Object
in class OutputStream
value
- the value to be written.public final void write_TypeCode(TypeCode value)
OutputStream
write_TypeCode
in interface MarshalOutputStream
write_TypeCode
in interface DataOutputStream
write_TypeCode
in class OutputStream
value
- the value to be written.public final void write_any(Any value)
OutputStream
write_any
in interface MarshalOutputStream
write_any
in interface DataOutputStream
write_any
in class OutputStream
value
- the value to be written.public final void write_Principal(Principal value)
OutputStream
write_Principal
in interface MarshalOutputStream
write_Principal
in class OutputStream
value
- the value to be written.public final void write(int b) throws IOException
OutputStream
write
in class OutputStream
b
- the value to be written.IOException
- if there is an input/output errorportable
package comments for unimplemented featurespublic final void write_fixed(BigDecimal value)
OutputStream
write_fixed
in class OutputStream
value
- a BidDecimal--value to be written.public final void write_Context(Context ctx, ContextList contexts)
OutputStream
write_Context
in class OutputStream
ctx
- a CORBA contextcontexts
- a ContextList
object containing the list of contexts
to be writtenportable
package comments for unimplemented featurespublic final ORB orb()
OutputStream
orb
in class OutputStream
portable
package comments for unimplemented featurespublic final void write_value(Serializable value)
OutputStream
write_value
in interface MarshalOutputStream
write_value
in class OutputStream
value
- is the acutal value to writepublic final void write_value(Serializable value, Class clz)
OutputStream
write_value
in class OutputStream
value
- 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)
OutputStream
write_value
in class OutputStream
value
- 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)
OutputStream
write_value
in class OutputStream
value
- 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)
OutputStream
write_abstract_interface
in class OutputStream
obj
- the actual value object to marshal or the stub to be marshalledpublic final void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public final void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public final void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public final void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public final void start_block()
start_block
in interface MarshalOutputStream
public final void end_block()
end_block
in interface MarshalOutputStream
public final void putEndian()
putEndian
in interface MarshalOutputStream
public void writeTo(OutputStream s) throws IOException
writeTo
in interface MarshalOutputStream
IOException
public final byte[] toByteArray()
toByteArray
in interface MarshalOutputStream
public final void write_Abstract(Object value)
DataOutputStream
write_Abstract
in interface DataOutputStream
value
- The value to be written.public final void write_Value(Serializable value)
DataOutputStream
write_Value
in interface DataOutputStream
value
- The value to be written.public final void write_any_array(Any[] seq, int offset, int length)
DataOutputStream
write_any_array
in interface DataOutputStream
seq
- 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 ValueBase
protected 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)
ValueOutputStream
start_value
in interface ValueOutputStream
public void end_value()
ValueOutputStream
end_value
in interface ValueOutputStream
Copyright © 2021 JBoss by Red Hat. All rights reserved.