1 7 package com.sun.corba.se.impl.encoding; 8 9 import java.io.IOException ; 10 import java.io.Serializable ; 11 import java.math.BigDecimal ; 12 import java.nio.ByteBuffer ; 13 14 import org.omg.CORBA.TypeCode ; 15 import org.omg.CORBA.Principal ; 16 import org.omg.CORBA.Any ; 17 18 import com.sun.corba.se.spi.ior.iiop.GIOPVersion; 19 import com.sun.corba.se.impl.orbutil.ORBConstants; 20 import com.sun.org.omg.SendingContext.CodeBase; 21 22 28 abstract class CDRInputStreamBase extends java.io.InputStream 29 { 30 protected CDRInputStream parent; 31 32 public void setParent(CDRInputStream parent) { 33 this.parent = parent; 34 } 35 36 public abstract void init(org.omg.CORBA.ORB orb, 37 ByteBuffer byteBuffer, 38 int size, 39 boolean littleEndian, 40 BufferManagerRead bufferManager); 41 42 public abstract boolean read_boolean(); 44 public abstract char read_char(); 45 public abstract char read_wchar(); 46 public abstract byte read_octet(); 47 public abstract short read_short(); 48 public abstract short read_ushort(); 49 public abstract int read_long(); 50 public abstract int read_ulong(); 51 public abstract long read_longlong(); 52 public abstract long read_ulonglong(); 53 public abstract float read_float(); 54 public abstract double read_double(); 55 public abstract String read_string(); 56 public abstract String read_wstring(); 57 public abstract void read_boolean_array(boolean[] value, int offset, int length); 58 public abstract void read_char_array(char[] value, int offset, int length); 59 public abstract void read_wchar_array(char[] value, int offset, int length); 60 public abstract void read_octet_array(byte[] value, int offset, int length); 61 public abstract void read_short_array(short[] value, int offset, int length); 62 public abstract void read_ushort_array(short[] value, int offset, int length); 63 public abstract void read_long_array(int[] value, int offset, int length); 64 public abstract void read_ulong_array(int[] value, int offset, int length); 65 public abstract void read_longlong_array(long[] value, int offset, int length); 66 public abstract void read_ulonglong_array(long[] value, int offset, int length); 67 public abstract void read_float_array(float[] value, int offset, int length); 68 public abstract void read_double_array(double[] value, int offset, int length); 69 public abstract org.omg.CORBA.Object read_Object(); 70 public abstract TypeCode read_TypeCode(); 71 public abstract Any read_any(); 72 public abstract Principal read_Principal(); 73 public int read() throws java.io.IOException { 74 throw new org.omg.CORBA.NO_IMPLEMENT (); 75 } 76 public abstract java.math.BigDecimal read_fixed(); 77 public org.omg.CORBA.Context read_Context() { 78 throw new org.omg.CORBA.NO_IMPLEMENT (); 79 } 80 public abstract org.omg.CORBA.Object read_Object(java.lang.Class clz); 81 public abstract org.omg.CORBA.ORB orb(); 82 83 public abstract java.io.Serializable read_value(); 85 public abstract java.io.Serializable read_value(java.lang.Class clz); 86 public abstract java.io.Serializable read_value(org.omg.CORBA.portable.BoxedValueHelper factory); 87 public abstract java.io.Serializable read_value(java.lang.String rep_id); 88 public abstract java.io.Serializable read_value(java.io.Serializable value); 89 public abstract java.lang.Object read_abstract_interface(); 90 public abstract java.lang.Object read_abstract_interface(java.lang.Class clz); 91 92 public abstract void consumeEndian(); 94 public abstract int getPosition(); 95 96 public abstract java.lang.Object read_Abstract (); 98 public abstract java.io.Serializable read_Value (); 99 public abstract void read_any_array (org.omg.CORBA.AnySeqHolder seq, int offset, int length); 100 public abstract void read_boolean_array (org.omg.CORBA.BooleanSeqHolder seq, int offset, int length); 101 public abstract void read_char_array (org.omg.CORBA.CharSeqHolder seq, int offset, int length); 102 public abstract void read_wchar_array (org.omg.CORBA.WCharSeqHolder seq, int offset, int length); 103 public abstract void read_octet_array (org.omg.CORBA.OctetSeqHolder seq, int offset, int length); 104 public abstract void read_short_array (org.omg.CORBA.ShortSeqHolder seq, int offset, int length); 105 public abstract void read_ushort_array (org.omg.CORBA.UShortSeqHolder seq, int offset, int length); 106 public abstract void read_long_array (org.omg.CORBA.LongSeqHolder seq, int offset, int length); 107 public abstract void read_ulong_array (org.omg.CORBA.ULongSeqHolder seq, int offset, int length); 108 public abstract void read_ulonglong_array (org.omg.CORBA.ULongLongSeqHolder seq, int offset, int length); 109 public abstract void read_longlong_array (org.omg.CORBA.LongLongSeqHolder seq, int offset, int length); 110 public abstract void read_float_array (org.omg.CORBA.FloatSeqHolder seq, int offset, int length); 111 public abstract void read_double_array (org.omg.CORBA.DoubleSeqHolder seq, int offset, int length); 112 113 public abstract String [] _truncatable_ids(); 115 116 120 public abstract void mark(int readlimit); 126 public abstract void reset(); 127 128 public boolean markSupported() { return false; } 139 140 public abstract CDRInputStreamBase dup(); 142 143 public abstract java.math.BigDecimal read_fixed(short digits, short scale); 145 146 public abstract boolean isLittleEndian(); 148 149 abstract void setHeaderPadding(boolean headerPadding); 151 152 154 public abstract ByteBuffer getByteBuffer(); 155 public abstract void setByteBuffer(ByteBuffer byteBuffer); 156 157 public abstract void setByteBufferWithInfo(ByteBufferWithInfo bbwi); 158 159 public abstract int getBufferLength(); 160 public abstract void setBufferLength(int value); 161 162 public abstract int getIndex(); 163 public abstract void setIndex(int value); 164 165 public abstract void orb(org.omg.CORBA.ORB orb); 166 167 public abstract BufferManagerRead getBufferManager(); 168 public abstract GIOPVersion getGIOPVersion(); 169 170 abstract CodeBase getCodeBase(); 171 172 abstract void printBuffer(); 173 174 abstract void alignOnBoundary(int octetBoundary); 175 176 abstract void performORBVersionSpecificInit(); 177 178 public abstract void resetCodeSetConverters(); 179 180 public abstract void start_value(); 182 public abstract void end_value(); 183 } 184 | Popular Tags |