Class CDROutputStream_1_0
java.lang.Object
java.io.OutputStream
com.sun.corba.ee.impl.encoding.CDROutputStreamBase
com.sun.corba.ee.impl.encoding.CDROutputStream_1_0
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
- Direct Known Subclasses:
CDROutputStream_1_1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final String[]private static final booleanprotected intprotected intprotected BufferManagerWrite(package private) ByteBufferprivate CodeSetConversion.CTBConverterprivate intprivate intprivate intprivate intprotected booleanprivate static final intprivate static final Stringprivate booleanprotected ORBprivate RepositoryIdStringsprivate RepositoryIdUtilityprivate CacheTable<String> protected byteprivate CacheTable<Object> private ValueHandlerprivate CodeSetConversion.CTBConverterprotected static final ORBUtilSystemExceptionFields inherited from class CDROutputStreamBase
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]protected voidalignAndReserve(int align, int n) (package private) voidalignOnBoundary(int octetBoundary) (package private) static ByteBufferallocateBuffer(ORB orb, BufferManagerWrite bufferManager, boolean usePooledByteBuffers) private voidblockSizePosition(int blockSize) private voidcallWriteValue(OutputStream parent, Serializable object, byte streamFormatVersion) voidclose()protected final intcomputeAlignment(int align) private void(package private) voidvoidvoidprivate voidendValueChunk(boolean useChunking) (package private) voidprivate voidintReturns the current position relative to the start of the message.protected CodeSetConversion.CTBConverterprivate StringgetCodebase(Class cls) private EnumDescgetEnumDesc(String className, String enumValue) intgetIndex()final intgetSize()private shortgetTypeModifier(ValueHelper factory) protected CodeSetConversion.CTBConverterprotected voidgrow(int align, int n) protected voidhandleSpecialChunkBegin(int requiredSize) protected voidprivate voidinABlock()voidinit(ORB orb, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers) (package private) voidinternalWriteOctetArray(byte[] value, int offset, int length) private booleanisCustom(Serializable object, BoxedValueHelper factory) private voidmustChunk(boolean flag) orb()final voidprivate void(package private) voidsetHeaderPadding(boolean headerPadding) voidsetIndex(int value) voidvoidstart_value(String rep_id) private voidstartValueChunk(boolean useChunking) private voidstartValueInfo(String repId, int offset, int position) byte[]protected byte[]toByteArray(int start) private voidupdateIndirectionTable(int indirection, Object key) voidwrite_Abstract(Object value) voidvoidfinal voidwrite_any_array(Any[] value, int offset, int length) final voidwrite_boolean(boolean x) final voidwrite_boolean_array(boolean[] value, int offset, int length) voidwrite_char(char x) final voidwrite_char_array(char[] value, int offset, int length) private voidwrite_codebase(String str, int pos) final voidwrite_double(double x) final voidwrite_double_array(double[] value, int offset, int length) voidwrite_fixed(String string, int signum) voidwrite_fixed(BigDecimal bigDecimal) voidwrite_fixed(BigDecimal bigDecimal, short digits, short scale) final voidwrite_float(float x) final voidwrite_float_array(float[] value, int offset, int length) voidwrite_long(int x) final voidwrite_long_array(int[] value, int offset, int length) voidwrite_longlong(long x) final voidwrite_longlong_array(long[] value, int offset, int length) voidwrite_Object(Object ref) voidwrite_octet(byte x) final voidwrite_octet_array(byte[] b, int offset, int length) voidprivate voidvoidwrite_short(short x) final voidwrite_short_array(short[] value, int offset, int length) voidwrite_string(String value) voidfinal voidwrite_ulong(int x) final voidwrite_ulong_array(int[] value, int offset, int length) final voidwrite_ulonglong(long x) final voidwrite_ulonglong_array(long[] value, int offset, int length) final voidwrite_ushort(short x) final voidwrite_ushort_array(short[] value, int offset, int length) voidwrite_value(Serializable object) voidwrite_value(Serializable object, Class clz) voidwrite_value(Serializable object, String repository_id) voidwrite_value(Serializable object, BoxedValueHelper factory) voidwrite_Value(Serializable value) voidwrite_wchar(char x) voidwrite_wchar_array(char[] value, int offset, int length) voidwrite_wstring(String value) private voidwriteArray(Serializable array, Class clazz) private voidwriteBigEndianWchar(char x) private voidwriteClass(String repository_id, Class clz, ClassInfoCache.ClassInfo cinfo) private voidwriteClassBody(Class clz, ClassInfoCache.ClassInfo cinfo) private voidwriteEndTag(boolean chunked) private voidwriteIDLEntity(IDLEntity object) private voidwriteIDLValue(Serializable object, String repID) voidwriteIndirection(int tag, int posIndirectedTo) private booleanprotected voidwriteLongWithoutAlign(int x) private voidHandles ORB versioning of the end tag.voidprivate voidwriteRMIIIOPValueType(Serializable object, Class clazz, ClassInfoCache.ClassInfo cinfo) protected intwriteString(String value) voidprivate voidwriteValueBase(ValueBase object, Class clazz) private intwriteValueTag(boolean chunkIt, boolean useRepId, String codebase) private voidwriteWStringValue(String string) Methods inherited from class CDROutputStreamBase
setParent, write, write_ContextMethods inherited from class OutputStream
flush, write, write
-
Field Details
-
INDIRECTION_TAG
private static final int INDIRECTION_TAG- See Also:
-
BIG_ENDIAN
private static final boolean BIG_ENDIAN- See Also:
-
bufferManagerWrite
-
byteBuffer
ByteBuffer byteBuffer -
orb
-
wrapper
-
blockSizeIndex
protected int blockSizeIndex -
blockSizePosition
protected int blockSizePosition -
streamFormatVersion
protected byte streamFormatVersion -
kWriteMethod
- See Also:
-
enumCache
-
codebaseCache
-
valueCache
-
repositoryIdCache
-
end_flag
private int end_flag -
chunkedValueNestingLevel
private int chunkedValueNestingLevel -
mustChunk
private boolean mustChunk -
inBlock
protected boolean inBlock -
end_flag_position
private int end_flag_position -
end_flag_index
private int end_flag_index -
valueHandler
-
repIdUtil
-
repIdStrs
-
charConverter
-
wcharConverter
-
_id
- See Also:
-
_ids
-
-
Constructor Details
-
CDROutputStream_1_0
public CDROutputStream_1_0()
-
-
Method Details
-
init
public void init(ORB orb, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers) - Specified by:
initin classCDROutputStreamBase
-
allocateBuffer
static ByteBuffer allocateBuffer(ORB orb, BufferManagerWrite bufferManager, boolean usePooledByteBuffers) -
createRepositoryIdHandlers
private void createRepositoryIdHandlers() -
getBufferManager
- Specified by:
getBufferManagerin classCDROutputStreamBase
-
toByteArray
public byte[] toByteArray()- Specified by:
toByteArrayin classCDROutputStreamBase
-
toByteArray
protected byte[] toByteArray(int start) - Specified by:
toByteArrayin classCDROutputStreamBase
-
getGIOPVersion
- Specified by:
getGIOPVersionin classCDROutputStreamBase
-
setHeaderPadding
void setHeaderPadding(boolean headerPadding) - Specified by:
setHeaderPaddingin classCDROutputStreamBase
-
handleSpecialChunkBegin
protected void handleSpecialChunkBegin(int requiredSize) -
handleSpecialChunkEnd
protected void handleSpecialChunkEnd() -
computeAlignment
protected final int computeAlignment(int align) -
alignAndReserve
protected void alignAndReserve(int align, int n) -
grow
protected void grow(int align, int n) -
putEndian
- Specified by:
putEndianin classCDROutputStreamBase- Throws:
SystemException
-
freeInternalCaches
void freeInternalCaches()- Specified by:
freeInternalCachesin classCDROutputStreamBase
-
write_octet
public void write_octet(byte x) - Specified by:
write_octetin classCDROutputStreamBase
-
write_boolean
public final void write_boolean(boolean x) - Specified by:
write_booleanin classCDROutputStreamBase
-
write_char
public void write_char(char x) - Specified by:
write_charin classCDROutputStreamBase
-
writeBigEndianWchar
private void writeBigEndianWchar(char x) -
write_wchar
public void write_wchar(char x) - Specified by:
write_wcharin classCDROutputStreamBase
-
write_short
public void write_short(short x) - Specified by:
write_shortin classCDROutputStreamBase
-
write_ushort
public final void write_ushort(short x) - Specified by:
write_ushortin classCDROutputStreamBase
-
write_long
public void write_long(int x) - Specified by:
write_longin classCDROutputStreamBase
-
write_ulong
public final void write_ulong(int x) - Specified by:
write_ulongin classCDROutputStreamBase
-
write_longlong
public void write_longlong(long x) - Specified by:
write_longlongin classCDROutputStreamBase
-
write_ulonglong
public final void write_ulonglong(long x) - Specified by:
write_ulonglongin classCDROutputStreamBase
-
write_float
public final void write_float(float x) - Specified by:
write_floatin classCDROutputStreamBase
-
write_double
public final void write_double(double x) - Specified by:
write_doublein classCDROutputStreamBase
-
write_string
- Specified by:
write_stringin classCDROutputStreamBase
-
writeString
-
write_wstring
- Specified by:
write_wstringin classCDROutputStreamBase
-
internalWriteOctetArray
void internalWriteOctetArray(byte[] value, int offset, int length) -
write_octet_array
public final void write_octet_array(byte[] b, int offset, int length) - Specified by:
write_octet_arrayin classCDROutputStreamBase
-
write_Principal
- Specified by:
write_Principalin classCDROutputStreamBase
-
write_any
- Specified by:
write_anyin classCDROutputStreamBase
-
write_TypeCode
- Specified by:
write_TypeCodein classCDROutputStreamBase
-
write_Object
- Specified by:
write_Objectin classCDROutputStreamBase
-
write_abstract_interface
- Specified by:
write_abstract_interfacein classCDROutputStreamBase
-
write_value
- Specified by:
write_valuein classCDROutputStreamBase
-
startValueChunk
private void startValueChunk(boolean useChunking) -
endValueChunk
private void endValueChunk(boolean useChunking) -
writeWStringValue
-
getCodebase
-
writeArray
-
writeValueBase
-
writeRMIIIOPValueType
private void writeRMIIIOPValueType(Serializable object, Class clazz, ClassInfoCache.ClassInfo cinfo) -
callWriteValue
-
getEnumDesc
-
write_value
- Specified by:
write_valuein classCDROutputStreamBase
-
write_value
- Specified by:
write_valuein classCDROutputStreamBase
-
write_value
- Specified by:
write_valuein classCDROutputStreamBase
-
isCustom
-
getTypeModifier
-
get_offset
public int get_offset()Returns the current position relative to the start of the message.- Returns:
- current position
-
start_block
public void start_block()- Specified by:
start_blockin classCDROutputStreamBase
-
writeLongWithoutAlign
protected void writeLongWithoutAlign(int x) -
inABlock
@InfoMethod private void inABlock() -
blockSizePosition
@InfoMethod private void blockSizePosition(int blockSize) -
removingZeroLengthBlock
@InfoMethod private void removingZeroLengthBlock() -
end_block
public void end_block()- Specified by:
end_blockin classCDROutputStreamBase
-
orb
- Specified by:
orbin classCDROutputStreamBase
-
write_boolean_array
public final void write_boolean_array(boolean[] value, int offset, int length) - Specified by:
write_boolean_arrayin classCDROutputStreamBase
-
write_char_array
public final void write_char_array(char[] value, int offset, int length) - Specified by:
write_char_arrayin classCDROutputStreamBase
-
write_wchar_array
public void write_wchar_array(char[] value, int offset, int length) - Specified by:
write_wchar_arrayin classCDROutputStreamBase
-
write_short_array
public final void write_short_array(short[] value, int offset, int length) - Specified by:
write_short_arrayin classCDROutputStreamBase
-
write_ushort_array
public final void write_ushort_array(short[] value, int offset, int length) - Specified by:
write_ushort_arrayin classCDROutputStreamBase
-
write_long_array
public final void write_long_array(int[] value, int offset, int length) - Specified by:
write_long_arrayin classCDROutputStreamBase
-
write_ulong_array
public final void write_ulong_array(int[] value, int offset, int length) - Specified by:
write_ulong_arrayin classCDROutputStreamBase
-
write_longlong_array
public final void write_longlong_array(long[] value, int offset, int length) - Specified by:
write_longlong_arrayin classCDROutputStreamBase
-
write_ulonglong_array
public final void write_ulonglong_array(long[] value, int offset, int length) - Specified by:
write_ulonglong_arrayin classCDROutputStreamBase
-
write_float_array
public final void write_float_array(float[] value, int offset, int length) - Specified by:
write_float_arrayin classCDROutputStreamBase
-
write_double_array
public final void write_double_array(double[] value, int offset, int length) - Specified by:
write_double_arrayin classCDROutputStreamBase
-
write_any_array
- Specified by:
write_any_arrayin classCDROutputStreamBase
-
writeTo
- Specified by:
writeToin classCDROutputStreamBase- Throws:
IOException
-
writeOctetSequenceTo
- Specified by:
writeOctetSequenceToin classCDROutputStreamBase
-
getSize
public final int getSize()- Specified by:
getSizein classCDROutputStreamBase
-
getIndex
public int getIndex()- Specified by:
getIndexin classCDROutputStreamBase
-
setIndex
public void setIndex(int value) - Specified by:
setIndexin classCDROutputStreamBase
-
getByteBuffer
- Specified by:
getByteBufferin classCDROutputStreamBase
-
freeValueCache
private void freeValueCache() -
updateIndirectionTable
-
writeIndirectionIfPossible
-
write_repositoryId
-
write_codebase
-
writeValueTag
-
writeIDLValue
-
writeEndTag
private void writeEndTag(boolean chunked) -
writeNestingLevel
private void writeNestingLevel()Handles ORB versioning of the end tag. Should only be called if chunking. If talking to our older ORBs (Standard Extension, Kestrel, and Ladybird), write the end flag that takes into account all enclosing valuetypes. If talking a newer or foreign ORB, or if the orb instance is null, write the end flag that only takes into account the enclosing chunked valuetypes. -
writeClass
-
writeClassBody
-
writeIDLEntity
-
write_Abstract
- Specified by:
write_Abstractin classCDROutputStreamBase
-
write_Value
- Specified by:
write_Valuein classCDROutputStreamBase
-
write_fixed
- Specified by:
write_fixedin classCDROutputStreamBase
-
write_fixed
- Specified by:
write_fixedin classCDROutputStreamBase
-
write_fixed
-
_truncatable_ids
- Specified by:
_truncatable_idsin classCDROutputStreamBase
-
writeIndirection
public void writeIndirection(int tag, int posIndirectedTo) - Specified by:
writeIndirectionin classCDROutputStreamBase
-
getCharConverter
-
getWCharConverter
-
alignOnBoundary
void alignOnBoundary(int octetBoundary) - Specified by:
alignOnBoundaryin classCDROutputStreamBase
-
startValueInfo
-
start_value
- Specified by:
start_valuein classCDROutputStreamBase
-
mustChunk
@InfoMethod private void mustChunk(boolean flag) -
end_value
public void end_value()- Specified by:
end_valuein classCDROutputStreamBase
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
dereferenceBuffer
void dereferenceBuffer()- Specified by:
dereferenceBufferin classCDROutputStreamBase
-