Package com.sun.corba.ee.impl.encoding
Class CDROutputObject
- java.lang.Object
-
- java.io.OutputStream
-
- org.omg.CORBA.portable.OutputStream
-
- org.omg.CORBA_2_3.portable.OutputStream
-
- com.sun.corba.ee.impl.encoding.CDROutputObject
-
- All Implemented Interfaces:
MarshalOutputStream,java.io.Closeable,java.io.Flushable,java.io.Serializable,java.lang.AutoCloseable,DataOutputStream,IDLEntity,ValueBase,ValueOutputStream
- Direct Known Subclasses:
EncapsOutputStream
public class CDROutputObject extends OutputStream implements MarshalOutputStream, DataOutputStream, ValueOutputStream
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classCDROutputObject.CDRInputObjectFactoryprotected static interfaceCDROutputObject.InputObjectFactoryprivate static classCDROutputObject.OutputStreamFactory
-
Field Summary
Fields Modifier and Type Field Description private Connectionconnectionprivate MessageMediatorcorbaMessageMediatorprivate Messageheaderprivate CDROutputStreamBaseimplprivate static CDROutputObject.CDRInputObjectFactoryINPUT_OBJECT_FACTORYprivate static OMGSystemExceptionomgWrapperprivate static longserialVersionUIDprotected static ORBUtilSystemExceptionwrapper
-
Constructor Summary
Constructors Modifier Constructor Description CDROutputObject(ORB orb, GIOPVersion version, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers)privateCDROutputObject(ORB orb, GIOPVersion giopVersion, Message header, BufferManagerWrite manager, byte streamFormatVersion, MessageMediator mediator)CDROutputObject(ORB orb, MessageMediator messageMediator, Message header, byte streamFormatVersion)CDROutputObject(ORB orb, MessageMediator messageMediator, Message header, byte streamFormatVersion, int strategy)CDROutputObject(ORB orb, MessageMediator mediator, GIOPVersion giopVersion, Connection connection, Message header, byte streamFormatVersion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]_truncatable_ids()Provides truncatable repository ids.voidclose()InputStreamcreate_input_stream()overrides create_input_stream from CDROutputStreamprivate voidcreateCDROutputStream(ORB orb, GIOPVersion version, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers)protected CodeSetConversion.CTBConvertercreateCharCTBConverter()CDRInputObjectcreateInputObject(ORB orb)protected CDRInputObjectcreateInputObject(ORB orb, CDROutputObject.InputObjectFactory factory)protected CodeSetConversion.CTBConvertercreateWCharCTBConverter()protected voiddprint(java.lang.String msg)voidend_block()voidend_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.voidfinishSendingMessage()voidflush()protected voidfreeInternalCaches()BufferManagerWritegetBufferManager()intgetBufferPosition()private CodeSetComponentInfo.CodeSetContextgetCodeSets()ConnectiongetConnection()GIOPVersiongetGIOPVersion()protected intgetIndex()MessagegetMessageHeader()MessageMediatorgetMessageMediator()protected intgetRealIndex(int index)protected intgetSize()ORBorb()Returns the ORB that created this OutputStream.voidputEndian()private voidreadObject(java.io.ObjectInputStream is)voidsendFirstFragment()voidsetHeaderPadding(boolean headerPadding)protected voidsetIndex(int value)voidsetMessageMediator(MessageMediator messageMediator)private voidsetPrivateFieldValue(java.lang.Object obj, java.lang.Class theClass, java.lang.String fieldName, java.lang.Object value)protected voidsetPrivateFieldValue(java.lang.Object obj, java.lang.String fieldName, java.lang.Object value)voidstart_block()voidstart_value(java.lang.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()byte[]toByteArray(int start)Returns the contents of this stream, from the specified start index to the current output position.private static booleanusePooledBuffers(MessageMediator mediator)voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)Writes an integer (length of arrays) onto this stream.voidwrite_Abstract(java.lang.Object value)Writes the IDL Abstract interface type to the output stream.voidwrite_abstract_interface(java.lang.Object obj)Marshals a value object or a stub object.voidwrite_any(Any value)Writes an Any on this output stream.voidwrite_any_array(Any[] seq, int offset, int length)Writes the array of IDL Anys from offset for length elements to the output stream.voidwrite_boolean(boolean value)Writes a boolean value to this stream.voidwrite_boolean_array(boolean[] value, int offset, int length)Writes an array of booleans on this output stream.voidwrite_char(char value)Writes a char value to this stream.voidwrite_char_array(char[] value, int offset, int length)Writes an array of chars on this output stream.voidwrite_Context(Context ctx, ContextList contexts)Writes a CORBA context on this stream.voidwrite_double(double value)Writes a double value to this stream.voidwrite_double_array(double[] value, int offset, int length)Writes an array of doubles on this output stream.voidwrite_fixed(java.math.BigDecimal value)Writes a BigDecimal number.voidwrite_fixed(java.math.BigDecimal bigDecimal, short digits, short scale)voidwrite_float(float value)Writes a float value to this stream.voidwrite_float_array(float[] value, int offset, int length)Writes an array of floats on this output stream.voidwrite_long(int value)Writes a CORBA long (i.e.voidwrite_long_array(int[] value, int offset, int length)Writes an array of CORBA longs (i.e.voidwrite_longlong(long value)Writes a CORBA longlong (i.e.voidwrite_longlong_array(long[] value, int offset, int length)Writes an array of CORBA longlongs (i.e.voidwrite_Object(Object value)Writes a CORBA Object on this output stream.voidwrite_octet(byte value)Writes a CORBA octet (i.e.voidwrite_octet_array(byte[] value, int offset, int length)Writes an array of CORBA octets (bytes) on this output stream.voidwrite_Principal(Principal value)Writes a Principle on this output stream.voidwrite_short(short value)Writes a short value to this stream.voidwrite_short_array(short[] value, int offset, int length)Writes an array of shorts on this output stream.voidwrite_string(java.lang.String value)Writes a string value to this stream.voidwrite_TypeCode(TypeCode value)Writes a TypeCode on this output stream.voidwrite_ulong(int value)Writes an unsigned CORBA long (i.e.voidwrite_ulong_array(int[] value, int offset, int length)Writes an array of unsigned CORBA longs (i.e.voidwrite_ulonglong(long value)Writes an unsigned CORBA longlong (i.e.voidwrite_ulonglong_array(long[] value, int offset, int length)Writes an array of unsigned CORBA longlongs (i.e.voidwrite_ushort(short value)Writes an unsigned short value to this stream.voidwrite_ushort_array(short[] value, int offset, int length)Writes an array of unsigned shorts on this output stream.voidwrite_value(java.io.Serializable value)Marshals a value type to the output stream.voidwrite_value(java.io.Serializable value, java.lang.Class clz)Marshals a value type to the output stream.voidwrite_value(java.io.Serializable value, java.lang.String repository_id)Marshals a value type to the output stream.voidwrite_value(java.io.Serializable value, BoxedValueHelper factory)Marshals a value type to the output stream.voidwrite_Value(java.io.Serializable value)Writes the IDL value type value to the output stream.voidwrite_wchar(char value)Writes a wide char value to this stream.voidwrite_wchar_array(char[] value, int offset, int length)Writes an array of wide chars on this output stream.voidwrite_wstring(java.lang.String value)Writes a wide string value to this stream.voidwriteIndirection(int tag, int posIndirectedTo)voidwriteOctetSequenceTo(OutputStream s)voidwriteTo(Connection connection)voidwriteTo(java.io.OutputStream s)
-
-
-
Field Detail
-
INPUT_OBJECT_FACTORY
private static final CDROutputObject.CDRInputObjectFactory INPUT_OBJECT_FACTORY
-
wrapper
protected static final ORBUtilSystemException wrapper
-
omgWrapper
private static final OMGSystemException omgWrapper
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
impl
private transient CDROutputStreamBase impl
-
header
private transient Message header
-
corbaMessageMediator
private transient MessageMediator corbaMessageMediator
-
connection
private transient Connection connection
-
-
Constructor Detail
-
CDROutputObject
public CDROutputObject(ORB orb, GIOPVersion version, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers)
-
CDROutputObject
private CDROutputObject(ORB orb, GIOPVersion giopVersion, Message header, BufferManagerWrite manager, byte streamFormatVersion, MessageMediator mediator)
-
CDROutputObject
public CDROutputObject(ORB orb, MessageMediator messageMediator, Message header, byte streamFormatVersion)
-
CDROutputObject
public CDROutputObject(ORB orb, MessageMediator messageMediator, Message header, byte streamFormatVersion, int strategy)
-
CDROutputObject
public CDROutputObject(ORB orb, MessageMediator mediator, GIOPVersion giopVersion, Connection connection, Message header, byte streamFormatVersion)
-
-
Method Detail
-
sendFirstFragment
public void sendFirstFragment()
-
setPrivateFieldValue
protected void setPrivateFieldValue(java.lang.Object obj, java.lang.String fieldName, java.lang.Object value)
-
setPrivateFieldValue
private void setPrivateFieldValue(java.lang.Object obj, java.lang.Class theClass, java.lang.String fieldName, java.lang.Object value) throws java.lang.NoSuchFieldException, java.lang.IllegalAccessException- Throws:
java.lang.NoSuchFieldExceptionjava.lang.IllegalAccessException
-
readObject
private void readObject(java.io.ObjectInputStream is) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
createCDROutputStream
private void createCDROutputStream(ORB orb, GIOPVersion version, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers)
-
usePooledBuffers
private static boolean usePooledBuffers(MessageMediator mediator)
-
getMessageHeader
public Message getMessageHeader()
-
finishSendingMessage
public final void finishSendingMessage()
-
writeTo
public void writeTo(Connection connection) throws java.io.IOException
- Throws:
java.io.IOException
-
create_input_stream
public InputStream create_input_stream()
overrides create_input_stream from CDROutputStream- Specified by:
create_input_streamin interfaceMarshalOutputStream- Specified by:
create_input_streamin classOutputStream- Returns:
- an input stream with the same buffer.
-
getConnection
public Connection getConnection()
-
getBufferPosition
public final int getBufferPosition()
-
createCharCTBConverter
protected CodeSetConversion.CTBConverter createCharCTBConverter()
-
createWCharCTBConverter
protected CodeSetConversion.CTBConverter createWCharCTBConverter()
-
getCodeSets
private CodeSetComponentInfo.CodeSetContext getCodeSets()
-
dprint
protected void dprint(java.lang.String msg)
-
setMessageMediator
public void setMessageMediator(MessageMediator messageMediator)
-
getMessageMediator
public MessageMediator getMessageMediator()
-
createInputObject
public CDRInputObject createInputObject(ORB orb)
-
createInputObject
protected CDRInputObject createInputObject(ORB orb, CDROutputObject.InputObjectFactory factory)
-
write_boolean
public final void write_boolean(boolean value)
Description copied from class:OutputStreamWrites a boolean value to this stream.- Specified by:
write_booleanin interfaceDataOutputStream- Specified by:
write_booleanin interfaceMarshalOutputStream- Specified by:
write_booleanin classOutputStream- Parameters:
value- the value to be written.
-
write_char
public final void write_char(char value)
Description copied from class:OutputStreamWrites a char value to this stream.- Specified by:
write_charin interfaceDataOutputStream- Specified by:
write_charin interfaceMarshalOutputStream- Specified by:
write_charin classOutputStream- Parameters:
value- the value to be written.
-
write_wchar
public final void write_wchar(char value)
Description copied from class:OutputStreamWrites a wide char value to this stream.- Specified by:
write_wcharin interfaceDataOutputStream- Specified by:
write_wcharin interfaceMarshalOutputStream- Specified by:
write_wcharin classOutputStream- Parameters:
value- the value to be written.
-
write_octet
public final void write_octet(byte value)
Description copied from class:OutputStreamWrites a CORBA octet (i.e. byte) value to this stream.- Specified by:
write_octetin interfaceDataOutputStream- Specified by:
write_octetin interfaceMarshalOutputStream- Specified by:
write_octetin classOutputStream- Parameters:
value- the value to be written.
-
write_short
public final void write_short(short value)
Description copied from class:OutputStreamWrites a short value to this stream.- Specified by:
write_shortin interfaceDataOutputStream- Specified by:
write_shortin interfaceMarshalOutputStream- Specified by:
write_shortin classOutputStream- Parameters:
value- the value to be written.
-
write_ushort
public final void write_ushort(short value)
Description copied from class:OutputStreamWrites an unsigned short value to this stream.- Specified by:
write_ushortin interfaceDataOutputStream- Specified by:
write_ushortin interfaceMarshalOutputStream- Specified by:
write_ushortin classOutputStream- Parameters:
value- the value to be written.
-
write_long
public final void write_long(int value)
Description copied from class:OutputStreamWrites a CORBA long (i.e. Java int) value to this stream.- Specified by:
write_longin interfaceDataOutputStream- Specified by:
write_longin interfaceMarshalOutputStream- Specified by:
write_longin classOutputStream- Parameters:
value- the value to be written.
-
write_ulong
public final void write_ulong(int value)
Description copied from class:OutputStreamWrites an unsigned CORBA long (i.e. Java int) value to this stream.- Specified by:
write_ulongin interfaceDataOutputStream- Specified by:
write_ulongin interfaceMarshalOutputStream- Specified by:
write_ulongin classOutputStream- Parameters:
value- the value to be written.
-
write_longlong
public final void write_longlong(long value)
Description copied from class:OutputStreamWrites a CORBA longlong (i.e. Java long) value to this stream.- Specified by:
write_longlongin interfaceDataOutputStream- Specified by:
write_longlongin interfaceMarshalOutputStream- Specified by:
write_longlongin classOutputStream- Parameters:
value- the value to be written.
-
write_ulonglong
public final void write_ulonglong(long value)
Description copied from class:OutputStreamWrites an unsigned CORBA longlong (i.e. Java long) value to this stream.- Specified by:
write_ulonglongin interfaceDataOutputStream- Specified by:
write_ulonglongin interfaceMarshalOutputStream- Specified by:
write_ulonglongin classOutputStream- Parameters:
value- the value to be written.
-
write_float
public final void write_float(float value)
Description copied from class:OutputStreamWrites a float value to this stream.- Specified by:
write_floatin interfaceDataOutputStream- Specified by:
write_floatin interfaceMarshalOutputStream- Specified by:
write_floatin classOutputStream- Parameters:
value- the value to be written.
-
write_double
public final void write_double(double value)
Description copied from class:OutputStreamWrites a double value to this stream.- Specified by:
write_doublein interfaceDataOutputStream- Specified by:
write_doublein interfaceMarshalOutputStream- Specified by:
write_doublein classOutputStream- Parameters:
value- the value to be written.
-
write_string
public final void write_string(java.lang.String value)
Description copied from class:OutputStreamWrites a string value to this stream.- Specified by:
write_stringin interfaceDataOutputStream- Specified by:
write_stringin interfaceMarshalOutputStream- Specified by:
write_stringin classOutputStream- Parameters:
value- the value to be written.
-
write_wstring
public final void write_wstring(java.lang.String value)
Description copied from class:OutputStreamWrites a wide string value to this stream.- Specified by:
write_wstringin interfaceDataOutputStream- Specified by:
write_wstringin interfaceMarshalOutputStream- Specified by:
write_wstringin classOutputStream- Parameters:
value- the value to be written.
-
write_boolean_array
public final void write_boolean_array(boolean[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of booleans on this output stream.- Specified by:
write_boolean_arrayin interfaceDataOutputStream- Specified by:
write_boolean_arrayin interfaceMarshalOutputStream- Specified by:
write_boolean_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_char_array
public final void write_char_array(char[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of chars on this output stream.- Specified by:
write_char_arrayin interfaceDataOutputStream- Specified by:
write_char_arrayin interfaceMarshalOutputStream- Specified by:
write_char_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_wchar_array
public final void write_wchar_array(char[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of wide chars on this output stream.- Specified by:
write_wchar_arrayin interfaceDataOutputStream- Specified by:
write_wchar_arrayin interfaceMarshalOutputStream- Specified by:
write_wchar_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_octet_array
public final void write_octet_array(byte[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of CORBA octets (bytes) on this output stream.- Specified by:
write_octet_arrayin interfaceDataOutputStream- Specified by:
write_octet_arrayin interfaceMarshalOutputStream- Specified by:
write_octet_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_short_array
public final void write_short_array(short[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of shorts on this output stream.- Specified by:
write_short_arrayin interfaceDataOutputStream- Specified by:
write_short_arrayin interfaceMarshalOutputStream- Specified by:
write_short_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_ushort_array
public final void write_ushort_array(short[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of unsigned shorts on this output stream.- Specified by:
write_ushort_arrayin interfaceDataOutputStream- Specified by:
write_ushort_arrayin interfaceMarshalOutputStream- Specified by:
write_ushort_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_long_array
public final void write_long_array(int[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of CORBA longs (i.e. Java ints) on this output stream.- Specified by:
write_long_arrayin interfaceDataOutputStream- Specified by:
write_long_arrayin interfaceMarshalOutputStream- Specified by:
write_long_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_ulong_array
public final void write_ulong_array(int[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of unsigned CORBA longs (i.e. Java ints) on this output stream.- Specified by:
write_ulong_arrayin interfaceDataOutputStream- Specified by:
write_ulong_arrayin interfaceMarshalOutputStream- Specified by:
write_ulong_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_longlong_array
public final void write_longlong_array(long[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of CORBA longlongs (i.e. Java longs) on this output stream.- Specified by:
write_longlong_arrayin interfaceDataOutputStream- Specified by:
write_longlong_arrayin interfaceMarshalOutputStream- Specified by:
write_longlong_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_ulonglong_array
public final void write_ulonglong_array(long[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of unsigned CORBA longlongs (i.e. Java ints) on this output stream.- Specified by:
write_ulonglong_arrayin interfaceDataOutputStream- Specified by:
write_ulonglong_arrayin interfaceMarshalOutputStream- Specified by:
write_ulonglong_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_float_array
public final void write_float_array(float[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of floats on this output stream.- Specified by:
write_float_arrayin interfaceDataOutputStream- Specified by:
write_float_arrayin interfaceMarshalOutputStream- Specified by:
write_float_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_double_array
public final void write_double_array(double[] value, int offset, int length)Description copied from class:OutputStreamWrites an array of doubles on this output stream.- Specified by:
write_double_arrayin interfaceDataOutputStream- Specified by:
write_double_arrayin interfaceMarshalOutputStream- Specified by:
write_double_arrayin classOutputStream- Parameters:
value- the array to be written.offset- offset on the stream.length- length of buffer to write.
-
write_Object
public final void write_Object(Object value)
Description copied from class:OutputStreamWrites a CORBA Object on this output stream.- Specified by:
write_Objectin interfaceDataOutputStream- Specified by:
write_Objectin interfaceMarshalOutputStream- Specified by:
write_Objectin classOutputStream- Parameters:
value- the value to be written.
-
write_TypeCode
public final void write_TypeCode(TypeCode value)
Description copied from class:OutputStreamWrites a TypeCode on this output stream.- Specified by:
write_TypeCodein interfaceDataOutputStream- Specified by:
write_TypeCodein interfaceMarshalOutputStream- Specified by:
write_TypeCodein classOutputStream- Parameters:
value- the value to be written.
-
write_any
public final void write_any(Any value)
Description copied from class:OutputStreamWrites an Any on this output stream.- Specified by:
write_anyin interfaceDataOutputStream- Specified by:
write_anyin interfaceMarshalOutputStream- Specified by:
write_anyin classOutputStream- Parameters:
value- the value to be written.
-
write_Principal
public final void write_Principal(Principal value)
Description copied from class:OutputStreamWrites a Principle on this output stream.- Specified by:
write_Principalin interfaceMarshalOutputStream- Overrides:
write_Principalin classOutputStream- Parameters:
value- the value to be written.
-
write
public final void write(int b) throws java.io.IOExceptionDescription copied from class:OutputStreamWrites an integer (length of arrays) onto this stream.- Overrides:
writein classOutputStream- Parameters:
b- the value to be written.- Throws:
java.io.IOException- if there is an input/output error- See Also:
portablepackage comments for unimplemented features
-
write_fixed
public final void write_fixed(java.math.BigDecimal value)
Description copied from class:OutputStreamWrites a BigDecimal number.- Overrides:
write_fixedin classOutputStream- Parameters:
value- a BidDecimal--value to be written.
-
write_Context
public final void write_Context(Context ctx, ContextList contexts)
Description copied from class:OutputStreamWrites a CORBA context on this stream. The Context is marshaled as a sequence of strings. Only those Context values specified in the contexts parameter are actually written.- Overrides:
write_Contextin classOutputStream- Parameters:
ctx- a CORBA contextcontexts- aContextListobject containing the list of contexts to be written- See Also:
portablepackage comments for unimplemented features
-
orb
public final ORB orb()
Description copied from class:OutputStreamReturns the ORB that created this OutputStream.- Overrides:
orbin classOutputStream- Returns:
- the ORB that created this OutputStream
- See Also:
portablepackage comments for unimplemented features
-
write_value
public final void write_value(java.io.Serializable value)
Description copied from class:OutputStreamMarshals a value type to the output stream.- Specified by:
write_valuein interfaceMarshalOutputStream- Overrides:
write_valuein classOutputStream- Parameters:
value- is the acutal value to write
-
write_value
public final void write_value(java.io.Serializable value, java.lang.Class clz)Description copied from class:OutputStreamMarshals a value type to the output stream.- Overrides:
write_valuein classOutputStream- Parameters:
value- is the acutal value to writeclz- is the declared type of the value to be marshaled
-
write_value
public final void write_value(java.io.Serializable value, java.lang.String repository_id)Description copied from class:OutputStreamMarshals a value type to the output stream.- Overrides:
write_valuein classOutputStream- Parameters:
value- is the acutal value to writerepository_id- identifies the type of the value type to be marshaled
-
write_value
public final void write_value(java.io.Serializable value, BoxedValueHelper factory)Description copied from class:OutputStreamMarshals a value type to the output stream.- Overrides:
write_valuein classOutputStream- Parameters:
value- is the acutal value to writefactory- is the instance of the helper to be used for marshaling the boxed value
-
write_abstract_interface
public final void write_abstract_interface(java.lang.Object obj)
Description copied from class:OutputStreamMarshals a value object or a stub object.- Overrides:
write_abstract_interfacein classOutputStream- Parameters:
obj- the actual value object to marshal or the stub to be marshalled
-
write
public final void write(byte[] b) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public final void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
flush
public final void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
close
public final void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
start_block
public final void start_block()
- Specified by:
start_blockin interfaceMarshalOutputStream
-
end_block
public final void end_block()
- Specified by:
end_blockin interfaceMarshalOutputStream
-
putEndian
public final void putEndian()
- Specified by:
putEndianin interfaceMarshalOutputStream
-
writeTo
public void writeTo(java.io.OutputStream s) throws java.io.IOException- Specified by:
writeToin interfaceMarshalOutputStream- Throws:
java.io.IOException
-
toByteArray
public final byte[] toByteArray()
- Specified by:
toByteArrayin interfaceMarshalOutputStream
-
toByteArray
public final byte[] toByteArray(int start)
Returns the contents of this stream, from the specified start index to the current output position.- Parameters:
start- the index at which to start copying the data.- Returns:
- a byte array representation of part of the output.
-
write_Abstract
public final void write_Abstract(java.lang.Object value)
Description copied from interface:DataOutputStreamWrites the IDL Abstract interface type to the output stream.- Specified by:
write_Abstractin interfaceDataOutputStream- Parameters:
value- The value to be written.
-
write_Value
public final void write_Value(java.io.Serializable value)
Description copied from interface:DataOutputStreamWrites the IDL value type value to the output stream.- Specified by:
write_Valuein interfaceDataOutputStream- Parameters:
value- The value to be written.
-
write_any_array
public final void write_any_array(Any[] seq, int offset, int length)
Description copied from interface:DataOutputStreamWrites the array of IDL Anys from offset for length elements to the output stream.- Specified by:
write_any_arrayin interfaceDataOutputStream- Parameters:
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.
-
_truncatable_ids
public final java.lang.String[] _truncatable_ids()
Description copied from interface:ValueBaseProvides truncatable repository ids.- Specified by:
_truncatable_idsin interfaceValueBase- Returns:
- a String array--list of truncatable repository ids.
-
getSize
protected final int getSize()
-
getIndex
protected final int getIndex()
-
getRealIndex
protected int getRealIndex(int index)
-
setIndex
protected final void setIndex(int value)
-
getBufferManager
public final BufferManagerWrite getBufferManager()
-
write_fixed
public final void write_fixed(java.math.BigDecimal bigDecimal, short digits, short scale)
-
writeOctetSequenceTo
public final void writeOctetSequenceTo(OutputStream s)
-
getGIOPVersion
public final GIOPVersion getGIOPVersion()
-
writeIndirection
public final void writeIndirection(int tag, int posIndirectedTo)
-
freeInternalCaches
protected final void freeInternalCaches()
-
setHeaderPadding
public void setHeaderPadding(boolean headerPadding)
-
start_value
public void start_value(java.lang.String rep_id)
Description copied from interface:ValueOutputStreamThe 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.- Specified by:
start_valuein interfaceValueOutputStream- Parameters:
rep_id- the repository id
-
end_value
public void end_value()
Description copied from interface:ValueOutputStreamThe end_value method ends any currently open chunk, writes the end tag for the nested custom valuetype, and decrements the valuetype nesting depth.- Specified by:
end_valuein interfaceValueOutputStream
-
-