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

CDRInputStream

public abstract class CDRInputStream extends org.omg.CORBA_2_3.portable.InputStream implements org.omg.CORBA.DataInputStream, com.sun.corba.se.impl.encoding.MarshalInputStream, org.omg.CORBA.portable.ValueInputStream
This is delegates to the real implementation. NOTE: Before using the stream for valuetype unmarshaling, one must call performORBVersionSpecificInit().

Fields Summary
protected com.sun.corba.se.spi.protocol.CorbaMessageMediator
messageMediator
private CDRInputStreamBase
impl
Constructors Summary
public CDRInputStream()

    
public CDRInputStream(CDRInputStream is)

        impl = is.impl.dup();
        impl.setParent(this);
    
public CDRInputStream(org.omg.CORBA.ORB orb, ByteBuffer byteBuffer, int size, boolean littleEndian, com.sun.corba.se.spi.ior.iiop.GIOPVersion version, byte encodingVersion, BufferManagerRead bufMgr)

        impl = InputStreamFactory.newInputStream((ORB)orb, version,
						 encodingVersion);

        impl.init(orb, byteBuffer, size, littleEndian, bufMgr);

        impl.setParent(this);
    
Methods Summary
public final java.lang.String[]_truncatable_ids()

        return impl._truncatable_ids();
    
public voidalignOnBoundary(int octetBoundary)
Aligns the current position on the given octet boundary if there are enough bytes available to do so. Otherwise, it just returns. This is used for some (but not all) GIOP 1.2 message headers.

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

        return impl.available();
    
public final voidclose()

        impl.close();
    
public final voidconsumeEndian()

        impl.consumeEndian();
    
protected CodeSetConversion.BTCConvertercreateCharBTCConverter()

        return CodeSetConversion.impl().getBTCConverter(OSFCodeSetRegistry.ISO_8859_1,
                                                        impl.isLittleEndian());
    
protected abstract CodeSetConversion.BTCConvertercreateWCharBTCConverter()

public abstract com.sun.corba.se.impl.encoding.CDRInputStreamdup()

public voidend_value()

        impl.end_value();
    
public final intgetBufferLength()

        return impl.getBufferLength();
    
public final BufferManagerReadgetBufferManager()

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

        return impl.getByteBuffer();
    
public com.sun.org.omg.SendingContext.CodeBasegetCodeBase()

        return null;
    
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 messageMediator;
    
public final intgetPosition()

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

        return impl.isLittleEndian();
    
public final voidmark(int readlimit)

        impl.mark(readlimit);
    
public final booleanmarkSupported()

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

        return impl.orb();
    
public final voidorb(org.omg.CORBA.ORB orb)

        impl.orb(orb);
    
public voidperformORBVersionSpecificInit()
This must be called after determining the proper ORB version, and setting it on the stream's ORB instance. It can be called after reading the service contexts, since that is the only place we can get the ORB version info. Trying to unmarshal things requiring repository IDs before calling this will result in NullPtrExceptions.

        // In the case of SystemExceptions, a stream is created
        // with its default constructor (and thus no impl is set).
        if (impl != null)
            impl.performORBVersionSpecificInit();
    
voidprintBuffer()

        impl.printBuffer();
    
public final intread()

        return impl.read();
    
public final intread(byte[] b)

        return impl.read(b);
    
public final intread(byte[] b, int off, int len)

        return impl.read(b, off, len);
    
public final java.lang.Objectread_Abstract()

        return impl.read_Abstract();
    
public final org.omg.CORBA.Contextread_Context()

        return impl.read_Context();
    
public final org.omg.CORBA.Objectread_Object()

        return impl.read_Object();
    
public final org.omg.CORBA.Objectread_Object(java.lang.Class clz)

        return impl.read_Object(clz);
    
public final org.omg.CORBA.Principalread_Principal()

        return impl.read_Principal();
    
public final org.omg.CORBA.TypeCoderead_TypeCode()

        return impl.read_TypeCode();
    
public final java.io.Serializableread_Value()

        return impl.read_Value();
    
public final java.lang.Objectread_abstract_interface()

        return impl.read_abstract_interface();
    
public final java.lang.Objectread_abstract_interface(java.lang.Class clz)

        return impl.read_abstract_interface(clz);
    
public final org.omg.CORBA.Anyread_any()

        return impl.read_any();
    
public final voidread_any_array(org.omg.CORBA.AnySeqHolder seq, int offset, int length)

        impl.read_any_array(seq, offset, length);
    
public final booleanread_boolean()

        return impl.read_boolean();
    
public final voidread_boolean_array(boolean[] value, int offset, int length)

        impl.read_boolean_array(value, offset, length);
    
public final voidread_boolean_array(org.omg.CORBA.BooleanSeqHolder seq, int offset, int length)

        impl.read_boolean_array(seq, offset, length);
    
public final charread_char()

        return impl.read_char();
    
public final voidread_char_array(char[] value, int offset, int length)

        impl.read_char_array(value, offset, length);
    
public final voidread_char_array(org.omg.CORBA.CharSeqHolder seq, int offset, int length)

        impl.read_char_array(seq, offset, length);
    
public final doubleread_double()

        return impl.read_double();
    
public final voidread_double_array(double[] value, int offset, int length)

        impl.read_double_array(value, offset, length);
    
public final voidread_double_array(org.omg.CORBA.DoubleSeqHolder seq, int offset, int length)

        impl.read_double_array(seq, offset, length);
    
public final java.math.BigDecimalread_fixed()

        return impl.read_fixed();
    
public final java.math.BigDecimalread_fixed(short digits, short scale)

        return impl.read_fixed(digits, scale);
    
public final floatread_float()

        return impl.read_float();
    
public final voidread_float_array(float[] value, int offset, int length)

        impl.read_float_array(value, offset, length);
    
public final voidread_float_array(org.omg.CORBA.FloatSeqHolder seq, int offset, int length)

        impl.read_float_array(seq, offset, length);
    
public final intread_long()

        return impl.read_long();
    
public final voidread_long_array(int[] value, int offset, int length)

        impl.read_long_array(value, offset, length);
    
public final voidread_long_array(org.omg.CORBA.LongSeqHolder seq, int offset, int length)

        impl.read_long_array(seq, offset, length);
    
public final longread_longlong()

        return impl.read_longlong();
    
public final voidread_longlong_array(long[] value, int offset, int length)

        impl.read_longlong_array(value, offset, length);
    
public final voidread_longlong_array(org.omg.CORBA.LongLongSeqHolder seq, int offset, int length)

        impl.read_longlong_array(seq, offset, length);
    
public final byteread_octet()

        return impl.read_octet();
    
public final voidread_octet_array(byte[] value, int offset, int length)

        impl.read_octet_array(value, offset, length);
    
public final voidread_octet_array(org.omg.CORBA.OctetSeqHolder seq, int offset, int length)

        impl.read_octet_array(seq, offset, length);
    
public final shortread_short()

        return impl.read_short();
    
public final voidread_short_array(short[] value, int offset, int length)

        impl.read_short_array(value, offset, length);
    
public final voidread_short_array(org.omg.CORBA.ShortSeqHolder seq, int offset, int length)

        impl.read_short_array(seq, offset, length);
    
public final java.lang.Stringread_string()

        return impl.read_string();
    
public final intread_ulong()

        return impl.read_ulong();
    
public final voidread_ulong_array(int[] value, int offset, int length)

        impl.read_ulong_array(value, offset, length);
    
public final voidread_ulong_array(org.omg.CORBA.ULongSeqHolder seq, int offset, int length)

        impl.read_ulong_array(seq, offset, length);
    
public final longread_ulonglong()

        return impl.read_ulonglong();
    
public final voidread_ulonglong_array(long[] value, int offset, int length)

        impl.read_ulonglong_array(value, offset, length);
    
public final voidread_ulonglong_array(org.omg.CORBA.ULongLongSeqHolder seq, int offset, int length)

        impl.read_ulonglong_array(seq, offset, length);
    
public final shortread_ushort()

        return impl.read_ushort();
    
public final voidread_ushort_array(short[] value, int offset, int length)

        impl.read_ushort_array(value, offset, length);
    
public final voidread_ushort_array(org.omg.CORBA.UShortSeqHolder seq, int offset, int length)

        impl.read_ushort_array(seq, offset, length);
    
public final java.io.Serializableread_value()

        return impl.read_value();
    
public final java.io.Serializableread_value(java.lang.Class clz)

        return impl.read_value(clz);
    
public final java.io.Serializableread_value(org.omg.CORBA.portable.BoxedValueHelper factory)

        return impl.read_value(factory);
    
public final java.io.Serializableread_value(java.lang.String rep_id)

        return impl.read_value(rep_id);
    
public final java.io.Serializableread_value(java.io.Serializable value)

        return impl.read_value(value);
    
public final charread_wchar()

        return impl.read_wchar();
    
public final voidread_wchar_array(char[] value, int offset, int length)

        impl.read_wchar_array(value, offset, length);
    
public final voidread_wchar_array(org.omg.CORBA.WCharSeqHolder seq, int offset, int length)

        impl.read_wchar_array(seq, offset, length);
    
public final java.lang.Stringread_wstring()

        return impl.read_wstring();
    
public final voidreset()

        impl.reset();
    
public voidresetCodeSetConverters()
Resets any internal references to code set converters. This is useful for forcing the CDR stream to reacquire converters (probably from its subclasses) when state has changed.

        impl.resetCodeSetConverters();
    
protected final voidsetBufferLength(int value)

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

        impl.setByteBuffer(byteBuffer);
    
protected final voidsetByteBufferWithInfo(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.messageMediator = (CorbaMessageMediator) messageMediator;
    
public final longskip(long n)

        return impl.skip(n);
    
public voidstart_value()

        impl.start_value();