FileDocCategorySizeDatePackage
CDROutputStream.javaAPI DocJava SE 5 API13158Fri Aug 26 14:54:20 BST 2005com.sun.corba.se.impl.encoding

CDROutputStream

public abstract class CDROutputStream extends OutputStream implements DataOutputStream, MarshalOutputStream, ValueOutputStream
This is delegates to the real implementation.

Fields Summary
private CDROutputStreamBase
impl
protected ORB
orb
protected ORBUtilSystemException
wrapper
protected CorbaMessageMediator
corbaMessageMediator
Constructors Summary
public CDROutputStream(ORB orb, GIOPVersion version, byte encodingVersion, boolean littleEndian, BufferManagerWrite bufferManager, byte streamFormatVersion, boolean usePooledByteBuffers)

        impl = OutputStreamFactory.newOutputStream(orb, version,
						   encodingVersion);
        impl.init(orb, littleEndian, bufferManager,
		  streamFormatVersion, usePooledByteBuffers);

        impl.setParent(this);
	this.orb = orb ;
	this.wrapper = ORBUtilSystemException.get( orb,
	    CORBALogDomains.RPC_ENCODING ) ;
    
public CDROutputStream(ORB orb, GIOPVersion version, byte encodingVersion, boolean littleEndian, BufferManagerWrite bufferManager, byte streamFormatVersion)

        this(orb, version, encodingVersion, littleEndian, 
	     bufferManager, streamFormatVersion, true);
    
Methods Summary
public final java.lang.String[]_truncatable_ids()

        return impl._truncatable_ids();
    
public voidalignOnBoundary(int octetBoundary)

        impl.alignOnBoundary(octetBoundary);
    
public final voidclose()

        impl.close();
    
protected com.sun.corba.se.impl.encoding.CodeSetConversion$CTBConvertercreateCharCTBConverter()

        return CodeSetConversion.impl().getCTBConverter(OSFCodeSetRegistry.ISO_8859_1);
    
protected abstract com.sun.corba.se.impl.encoding.CodeSetConversion$CTBConvertercreateWCharCTBConverter()

public abstract org.omg.CORBA.portable.InputStreamcreate_input_stream()

public final voidend_block()

        impl.end_block();
    
public voidend_value()

        impl.end_value();
    
public final voidflush()

        impl.flush();
    
protected final voidfreeInternalCaches()

        impl.freeInternalCaches();
    
public final com.sun.corba.se.impl.encoding.BufferManagerWritegetBufferManager()

        return impl.getBufferManager();
    
protected final java.nio.ByteBuffergetByteBuffer()

        return impl.getByteBuffer();
    
public com.sun.corba.se.impl.encoding.ByteBufferWithInfogetByteBufferWithInfo()

        return impl.getByteBufferWithInfo();
    
public final com.sun.corba.se.spi.ior.iiop.GIOPVersiongetGIOPVersion()

        return impl.getGIOPVersion();
    
protected final intgetIndex()

        return impl.getIndex();
    
public com.sun.corba.se.pept.protocol.MessageMediatorgetMessageMediator()

        return corbaMessageMediator;
    
protected intgetRealIndex(int index)

        // Used in indirections. Overridden by TypeCodeOutputStream.
        return index;
    
protected final intgetSize()

        return impl.getSize();
    
public final booleanisLittleEndian()

        return impl.isLittleEndian();
    
public final org.omg.CORBA.ORBorb()

        return impl.orb();
    
voidprintBuffer()

        impl.printBuffer();
    
public final voidputEndian()

        impl.putEndian();
    
protected final voidsetByteBuffer(java.nio.ByteBuffer byteBuffer)

        impl.setByteBuffer(byteBuffer);
    
protected voidsetByteBufferWithInfo(com.sun.corba.se.impl.encoding.ByteBufferWithInfo bbwi)

        impl.setByteBufferWithInfo(bbwi);
    
public voidsetHeaderPadding(boolean headerPadding)

        impl.setHeaderPadding(headerPadding);
    
protected final voidsetIndex(int value)

        impl.setIndex(value);
    
public voidsetMessageMediator(com.sun.corba.se.pept.protocol.MessageMediator messageMediator)

        this.corbaMessageMediator = (CorbaMessageMediator) messageMediator;
    
public final voidstart_block()

        impl.start_block();
    
public voidstart_value(java.lang.String rep_id)

        impl.start_value(rep_id);
    
public final byte[]toByteArray()

        return impl.toByteArray();
    
public final voidwrite(int b)

        impl.write(b);
    
public final voidwrite(byte[] b)

        impl.write(b);
    
public final voidwrite(byte[] b, int off, int len)

        impl.write(b, off, len);
    
public final voidwriteIndirection(int tag, int posIndirectedTo)

        impl.writeIndirection(tag, posIndirectedTo);
    
public final voidwriteOctetSequenceTo(org.omg.CORBA.portable.OutputStream s)

        impl.writeOctetSequenceTo(s);
    
public voidwriteTo(java.io.OutputStream s)

        impl.writeTo(s);
    
public final voidwrite_Abstract(java.lang.Object value)

        impl.write_Abstract(value);
    
public final voidwrite_Context(org.omg.CORBA.Context ctx, org.omg.CORBA.ContextList contexts)

        impl.write_Context(ctx, contexts);
    
public final voidwrite_Object(org.omg.CORBA.Object value)

        impl.write_Object(value);
    
public final voidwrite_Principal(org.omg.CORBA.Principal value)

        impl.write_Principal(value);
    
public final voidwrite_TypeCode(org.omg.CORBA.TypeCode value)

        impl.write_TypeCode(value);
    
public final voidwrite_Value(java.io.Serializable value)

        impl.write_Value(value);
    
public final voidwrite_abstract_interface(java.lang.Object obj)

        impl.write_abstract_interface(obj);
    
public final voidwrite_any(org.omg.CORBA.Any value)

        impl.write_any(value);
    
public final voidwrite_any_array(org.omg.CORBA.Any[] seq, int offset, int length)

        impl.write_any_array(seq, offset, length);
    
public final voidwrite_boolean(boolean value)

        impl.write_boolean(value);
    
public final voidwrite_boolean_array(boolean[] value, int offset, int length)

        impl.write_boolean_array(value, offset, length);
    
public final voidwrite_char(char value)

        impl.write_char(value);
    
public final voidwrite_char_array(char[] value, int offset, int length)

        impl.write_char_array(value, offset, length);
    
public final voidwrite_double(double value)

        impl.write_double(value);
    
public final voidwrite_double_array(double[] value, int offset, int length)

        impl.write_double_array(value, offset, length);
    
public final voidwrite_fixed(java.math.BigDecimal value)

        impl.write_fixed(value);
    
public final voidwrite_fixed(java.math.BigDecimal bigDecimal, short digits, short scale)

        impl.write_fixed(bigDecimal, digits, scale);
    
public final voidwrite_float(float value)

        impl.write_float(value);
    
public final voidwrite_float_array(float[] value, int offset, int length)

        impl.write_float_array(value, offset, length);
    
public final voidwrite_long(int value)

        impl.write_long(value);
    
public final voidwrite_long_array(int[] value, int offset, int length)

        impl.write_long_array(value, offset, length);
    
public final voidwrite_longlong(long value)

        impl.write_longlong(value);
    
public final voidwrite_longlong_array(long[] value, int offset, int length)

        impl.write_longlong_array(value, offset, length);
    
public final voidwrite_octet(byte value)

        impl.write_octet(value);
    
public final voidwrite_octet_array(byte[] value, int offset, int length)

        impl.write_octet_array(value, offset, length);
    
public final voidwrite_short(short value)

        impl.write_short(value);
    
public final voidwrite_short_array(short[] value, int offset, int length)

        impl.write_short_array(value, offset, length);
    
public final voidwrite_string(java.lang.String value)

        impl.write_string(value);
    
public final voidwrite_ulong(int value)

        impl.write_ulong(value);
    
public final voidwrite_ulong_array(int[] value, int offset, int length)

        impl.write_ulong_array(value, offset, length);
    
public final voidwrite_ulonglong(long value)

        impl.write_ulonglong(value);
    
public final voidwrite_ulonglong_array(long[] value, int offset, int length)

        impl.write_ulonglong_array(value, offset, length);
    
public final voidwrite_ushort(short value)

        impl.write_ushort(value);
    
public final voidwrite_ushort_array(short[] value, int offset, int length)

        impl.write_ushort_array(value, offset, length);
    
public final voidwrite_value(java.io.Serializable value)

        impl.write_value(value);
    
public final voidwrite_value(java.io.Serializable value, java.lang.Class clz)

        impl.write_value(value, clz);
    
public final voidwrite_value(java.io.Serializable value, java.lang.String repository_id)

        impl.write_value(value, repository_id);
    
public final voidwrite_value(java.io.Serializable value, org.omg.CORBA.portable.BoxedValueHelper factory)

        impl.write_value(value, factory);
    
public final voidwrite_wchar(char value)

        impl.write_wchar(value);
    
public final voidwrite_wchar_array(char[] value, int offset, int length)

        impl.write_wchar_array(value, offset, length);
    
public final voidwrite_wstring(java.lang.String value)

        impl.write_wstring(value);