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 class
CDROutputObject.CDRInputObjectFactory
protected static interface
CDROutputObject.InputObjectFactory
private static class
CDROutputObject.OutputStreamFactory
-
Field Summary
Fields Modifier and Type Field Description private Connection
connection
private MessageMediator
corbaMessageMediator
private Message
header
private CDROutputStreamBase
impl
private static CDROutputObject.CDRInputObjectFactory
INPUT_OBJECT_FACTORY
private static OMGSystemException
omgWrapper
private static long
serialVersionUID
protected static ORBUtilSystemException
wrapper
-
Constructor Summary
Constructors Modifier Constructor Description CDROutputObject(ORB orb, GIOPVersion version, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers)
private
CDROutputObject(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.void
close()
InputStream
create_input_stream()
overrides create_input_stream from CDROutputStreamprivate void
createCDROutputStream(ORB orb, GIOPVersion version, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers)
protected CodeSetConversion.CTBConverter
createCharCTBConverter()
CDRInputObject
createInputObject(ORB orb)
protected CDRInputObject
createInputObject(ORB orb, CDROutputObject.InputObjectFactory factory)
protected CodeSetConversion.CTBConverter
createWCharCTBConverter()
protected void
dprint(java.lang.String msg)
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
finishSendingMessage()
void
flush()
protected void
freeInternalCaches()
BufferManagerWrite
getBufferManager()
int
getBufferPosition()
private CodeSetComponentInfo.CodeSetContext
getCodeSets()
Connection
getConnection()
GIOPVersion
getGIOPVersion()
protected int
getIndex()
Message
getMessageHeader()
MessageMediator
getMessageMediator()
protected int
getRealIndex(int index)
protected int
getSize()
ORB
orb()
Returns the ORB that created this OutputStream.void
putEndian()
private void
readObject(java.io.ObjectInputStream is)
void
sendFirstFragment()
void
setHeaderPadding(boolean headerPadding)
protected void
setIndex(int value)
void
setMessageMediator(MessageMediator messageMediator)
private void
setPrivateFieldValue(java.lang.Object obj, java.lang.Class theClass, java.lang.String fieldName, java.lang.Object value)
protected void
setPrivateFieldValue(java.lang.Object obj, java.lang.String fieldName, java.lang.Object value)
void
start_block()
void
start_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 boolean
usePooledBuffers(MessageMediator mediator)
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
write_Abstract(java.lang.Object value)
Writes the IDL Abstract interface type to the output stream.void
write_abstract_interface(java.lang.Object obj)
Marshals a value object or a stub object.void
write_any(Any value)
Writes an Any on this 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_boolean(boolean value)
Writes a boolean value to this stream.void
write_boolean_array(boolean[] value, int offset, int length)
Writes an array of booleans on this output stream.void
write_char(char value)
Writes a char 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_Context(Context ctx, ContextList contexts)
Writes a CORBA context on this stream.void
write_double(double value)
Writes a double value to this stream.void
write_double_array(double[] value, int offset, int length)
Writes an array of doubles on this output stream.void
write_fixed(java.math.BigDecimal value)
Writes a BigDecimal number.void
write_fixed(java.math.BigDecimal bigDecimal, short digits, short scale)
void
write_float(float value)
Writes a float value to this stream.void
write_float_array(float[] value, int offset, int length)
Writes an array of floats on this output stream.void
write_long(int value)
Writes a CORBA long (i.e.void
write_long_array(int[] value, int offset, int length)
Writes an array of CORBA longs (i.e.void
write_longlong(long value)
Writes a CORBA longlong (i.e.void
write_longlong_array(long[] value, int offset, int length)
Writes an array of CORBA longlongs (i.e.void
write_Object(Object value)
Writes a CORBA Object on this output stream.void
write_octet(byte value)
Writes a CORBA octet (i.e.void
write_octet_array(byte[] value, int offset, int length)
Writes an array of CORBA octets (bytes) on this output stream.void
write_Principal(Principal value)
Writes a Principle on this output stream.void
write_short(short value)
Writes a short value to this stream.void
write_short_array(short[] value, int offset, int length)
Writes an array of shorts on this output stream.void
write_string(java.lang.String value)
Writes a string value to this stream.void
write_TypeCode(TypeCode value)
Writes a TypeCode on this output stream.void
write_ulong(int value)
Writes an unsigned CORBA long (i.e.void
write_ulong_array(int[] value, int offset, int length)
Writes an array of unsigned CORBA longs (i.e.void
write_ulonglong(long value)
Writes an unsigned CORBA longlong (i.e.void
write_ulonglong_array(long[] value, int offset, int length)
Writes an array of unsigned CORBA longlongs (i.e.void
write_ushort(short value)
Writes an unsigned short value to this stream.void
write_ushort_array(short[] value, int offset, int length)
Writes an array of unsigned shorts on this output stream.void
write_value(java.io.Serializable value)
Marshals a value type to the output stream.void
write_value(java.io.Serializable value, java.lang.Class clz)
Marshals a value type to the output stream.void
write_value(java.io.Serializable value, java.lang.String repository_id)
Marshals a value type to the output stream.void
write_value(java.io.Serializable value, BoxedValueHelper factory)
Marshals a value type to the output stream.void
write_Value(java.io.Serializable value)
Writes the IDL value type value to the output stream.void
write_wchar(char value)
Writes a wide char value to this stream.void
write_wchar_array(char[] value, int offset, int length)
Writes an array of wide chars on this output stream.void
write_wstring(java.lang.String value)
Writes a wide string value to this stream.void
writeIndirection(int tag, int posIndirectedTo)
void
writeOctetSequenceTo(OutputStream s)
void
writeTo(Connection connection)
void
writeTo(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.NoSuchFieldException
java.lang.IllegalAccessException
-
readObject
private void readObject(java.io.ObjectInputStream is) throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.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_stream
in interfaceMarshalOutputStream
- Specified by:
create_input_stream
in 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:OutputStream
Writes a boolean value to this stream.- Specified by:
write_boolean
in interfaceDataOutputStream
- Specified by:
write_boolean
in interfaceMarshalOutputStream
- Specified by:
write_boolean
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_char
public final void write_char(char value)
Description copied from class:OutputStream
Writes a char value to this stream.- Specified by:
write_char
in interfaceDataOutputStream
- Specified by:
write_char
in interfaceMarshalOutputStream
- Specified by:
write_char
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_wchar
public final void write_wchar(char value)
Description copied from class:OutputStream
Writes a wide char value to this stream.- Specified by:
write_wchar
in interfaceDataOutputStream
- Specified by:
write_wchar
in interfaceMarshalOutputStream
- Specified by:
write_wchar
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_octet
public final void write_octet(byte value)
Description copied from class:OutputStream
Writes a CORBA octet (i.e. byte) value to this stream.- Specified by:
write_octet
in interfaceDataOutputStream
- Specified by:
write_octet
in interfaceMarshalOutputStream
- Specified by:
write_octet
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_short
public final void write_short(short value)
Description copied from class:OutputStream
Writes a short value to this stream.- Specified by:
write_short
in interfaceDataOutputStream
- Specified by:
write_short
in interfaceMarshalOutputStream
- Specified by:
write_short
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_ushort
public final void write_ushort(short value)
Description copied from class:OutputStream
Writes an unsigned short value to this stream.- Specified by:
write_ushort
in interfaceDataOutputStream
- Specified by:
write_ushort
in interfaceMarshalOutputStream
- Specified by:
write_ushort
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_long
public final void write_long(int value)
Description copied from class:OutputStream
Writes a CORBA long (i.e. Java int) value to this stream.- Specified by:
write_long
in interfaceDataOutputStream
- Specified by:
write_long
in interfaceMarshalOutputStream
- Specified by:
write_long
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_ulong
public final void write_ulong(int value)
Description copied from class:OutputStream
Writes an unsigned CORBA long (i.e. Java int) value to this stream.- Specified by:
write_ulong
in interfaceDataOutputStream
- Specified by:
write_ulong
in interfaceMarshalOutputStream
- Specified by:
write_ulong
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_longlong
public final void write_longlong(long value)
Description copied from class:OutputStream
Writes a CORBA longlong (i.e. Java long) value to this stream.- Specified by:
write_longlong
in interfaceDataOutputStream
- Specified by:
write_longlong
in interfaceMarshalOutputStream
- Specified by:
write_longlong
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_ulonglong
public final void write_ulonglong(long value)
Description copied from class:OutputStream
Writes an unsigned CORBA longlong (i.e. Java long) value to this stream.- Specified by:
write_ulonglong
in interfaceDataOutputStream
- Specified by:
write_ulonglong
in interfaceMarshalOutputStream
- Specified by:
write_ulonglong
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_float
public final void write_float(float value)
Description copied from class:OutputStream
Writes a float value to this stream.- Specified by:
write_float
in interfaceDataOutputStream
- Specified by:
write_float
in interfaceMarshalOutputStream
- Specified by:
write_float
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_double
public final void write_double(double value)
Description copied from class:OutputStream
Writes a double value to this stream.- Specified by:
write_double
in interfaceDataOutputStream
- Specified by:
write_double
in interfaceMarshalOutputStream
- Specified by:
write_double
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_string
public final void write_string(java.lang.String value)
Description copied from class:OutputStream
Writes a string value to this stream.- Specified by:
write_string
in interfaceDataOutputStream
- Specified by:
write_string
in interfaceMarshalOutputStream
- Specified by:
write_string
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_wstring
public final void write_wstring(java.lang.String value)
Description copied from class:OutputStream
Writes a wide string value to this stream.- Specified by:
write_wstring
in interfaceDataOutputStream
- Specified by:
write_wstring
in interfaceMarshalOutputStream
- Specified by:
write_wstring
in 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:OutputStream
Writes an array of booleans on this output stream.- Specified by:
write_boolean_array
in interfaceDataOutputStream
- Specified by:
write_boolean_array
in interfaceMarshalOutputStream
- Specified by:
write_boolean_array
in 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:OutputStream
Writes an array of chars on this output stream.- Specified by:
write_char_array
in interfaceDataOutputStream
- Specified by:
write_char_array
in interfaceMarshalOutputStream
- Specified by:
write_char_array
in 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:OutputStream
Writes an array of wide chars on this output stream.- Specified by:
write_wchar_array
in interfaceDataOutputStream
- Specified by:
write_wchar_array
in interfaceMarshalOutputStream
- Specified by:
write_wchar_array
in 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:OutputStream
Writes an array of CORBA octets (bytes) on this output stream.- Specified by:
write_octet_array
in interfaceDataOutputStream
- Specified by:
write_octet_array
in interfaceMarshalOutputStream
- Specified by:
write_octet_array
in 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:OutputStream
Writes an array of shorts on this output stream.- Specified by:
write_short_array
in interfaceDataOutputStream
- Specified by:
write_short_array
in interfaceMarshalOutputStream
- Specified by:
write_short_array
in 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:OutputStream
Writes an array of unsigned shorts on this output stream.- Specified by:
write_ushort_array
in interfaceDataOutputStream
- Specified by:
write_ushort_array
in interfaceMarshalOutputStream
- Specified by:
write_ushort_array
in 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:OutputStream
Writes an array of CORBA longs (i.e. Java ints) on this output stream.- Specified by:
write_long_array
in interfaceDataOutputStream
- Specified by:
write_long_array
in interfaceMarshalOutputStream
- Specified by:
write_long_array
in 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:OutputStream
Writes an array of unsigned CORBA longs (i.e. Java ints) on this output stream.- Specified by:
write_ulong_array
in interfaceDataOutputStream
- Specified by:
write_ulong_array
in interfaceMarshalOutputStream
- Specified by:
write_ulong_array
in 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:OutputStream
Writes an array of CORBA longlongs (i.e. Java longs) on this output stream.- Specified by:
write_longlong_array
in interfaceDataOutputStream
- Specified by:
write_longlong_array
in interfaceMarshalOutputStream
- Specified by:
write_longlong_array
in 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:OutputStream
Writes an array of unsigned CORBA longlongs (i.e. Java ints) on this output stream.- Specified by:
write_ulonglong_array
in interfaceDataOutputStream
- Specified by:
write_ulonglong_array
in interfaceMarshalOutputStream
- Specified by:
write_ulonglong_array
in 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:OutputStream
Writes an array of floats on this output stream.- Specified by:
write_float_array
in interfaceDataOutputStream
- Specified by:
write_float_array
in interfaceMarshalOutputStream
- Specified by:
write_float_array
in 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:OutputStream
Writes an array of doubles on this output stream.- Specified by:
write_double_array
in interfaceDataOutputStream
- Specified by:
write_double_array
in interfaceMarshalOutputStream
- Specified by:
write_double_array
in 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:OutputStream
Writes a CORBA Object on this output stream.- Specified by:
write_Object
in interfaceDataOutputStream
- Specified by:
write_Object
in interfaceMarshalOutputStream
- Specified by:
write_Object
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_TypeCode
public final void write_TypeCode(TypeCode value)
Description copied from class:OutputStream
Writes a TypeCode on this output stream.- Specified by:
write_TypeCode
in interfaceDataOutputStream
- Specified by:
write_TypeCode
in interfaceMarshalOutputStream
- Specified by:
write_TypeCode
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_any
public final void write_any(Any value)
Description copied from class:OutputStream
Writes an Any on this output stream.- Specified by:
write_any
in interfaceDataOutputStream
- Specified by:
write_any
in interfaceMarshalOutputStream
- Specified by:
write_any
in classOutputStream
- Parameters:
value
- the value to be written.
-
write_Principal
public final void write_Principal(Principal value)
Description copied from class:OutputStream
Writes a Principle on this output stream.- Specified by:
write_Principal
in interfaceMarshalOutputStream
- Overrides:
write_Principal
in classOutputStream
- Parameters:
value
- the value to be written.
-
write
public final void write(int b) throws java.io.IOException
Description copied from class:OutputStream
Writes an integer (length of arrays) onto this stream.- Overrides:
write
in classOutputStream
- Parameters:
b
- the value to be written.- Throws:
java.io.IOException
- if there is an input/output error- See Also:
portable
package comments for unimplemented features
-
write_fixed
public final void write_fixed(java.math.BigDecimal value)
Description copied from class:OutputStream
Writes a BigDecimal number.- Overrides:
write_fixed
in classOutputStream
- Parameters:
value
- a BidDecimal--value to be written.
-
write_Context
public final void write_Context(Context ctx, ContextList contexts)
Description copied from class:OutputStream
Writes 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_Context
in classOutputStream
- Parameters:
ctx
- a CORBA contextcontexts
- aContextList
object containing the list of contexts to be written- See Also:
portable
package comments for unimplemented features
-
orb
public final ORB orb()
Description copied from class:OutputStream
Returns the ORB that created this OutputStream.- Overrides:
orb
in classOutputStream
- Returns:
- the ORB that created this OutputStream
- See Also:
portable
package comments for unimplemented features
-
write_value
public final void write_value(java.io.Serializable value)
Description copied from class:OutputStream
Marshals a value type to the output stream.- Specified by:
write_value
in interfaceMarshalOutputStream
- Overrides:
write_value
in 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:OutputStream
Marshals a value type to the output stream.- Overrides:
write_value
in 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:OutputStream
Marshals a value type to the output stream.- Overrides:
write_value
in 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:OutputStream
Marshals a value type to the output stream.- Overrides:
write_value
in 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:OutputStream
Marshals a value object or a stub object.- Overrides:
write_abstract_interface
in 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:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public final void write(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
flush
public final void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
close
public final void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
start_block
public final void start_block()
- Specified by:
start_block
in interfaceMarshalOutputStream
-
end_block
public final void end_block()
- Specified by:
end_block
in interfaceMarshalOutputStream
-
putEndian
public final void putEndian()
- Specified by:
putEndian
in interfaceMarshalOutputStream
-
writeTo
public void writeTo(java.io.OutputStream s) throws java.io.IOException
- Specified by:
writeTo
in interfaceMarshalOutputStream
- Throws:
java.io.IOException
-
toByteArray
public final byte[] toByteArray()
- Specified by:
toByteArray
in 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:DataOutputStream
Writes the IDL Abstract interface type to the output stream.- Specified by:
write_Abstract
in interfaceDataOutputStream
- Parameters:
value
- The value to be written.
-
write_Value
public final void write_Value(java.io.Serializable value)
Description copied from interface:DataOutputStream
Writes the IDL value type value to the output stream.- Specified by:
write_Value
in 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:DataOutputStream
Writes the array of IDL Anys from offset for length elements to the output stream.- Specified by:
write_any_array
in 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:ValueBase
Provides truncatable repository ids.- Specified by:
_truncatable_ids
in 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:ValueOutputStream
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.- Specified by:
start_value
in interfaceValueOutputStream
- Parameters:
rep_id
- the repository id
-
end_value
public void end_value()
Description copied from interface:ValueOutputStream
The 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_value
in interfaceValueOutputStream
-
-