201202203204205206207208209210211
cdrIn.consumeEndian(); // If type code not specified, read it from octet stream: if( tc == null ) { tc = cdrIn.read_TypeCode(); } // Create a new Any object: any = new AnyImpl( (com.sun.corba.se.spi.orb.ORB)orb ); any.read_value( cdrIn, tc );
197198199200201202203204205206207
257258259260261262263264265266267
// Start by skipping the sequence lenght // in.read_ulong(); for (int i = 0; i < values.length; i++) { in.read_TypeCode(); DynAny_impl impl = (DynAny_impl) result[i]; impl._OB_unmarshal(in); } return result;
256257258259260261262263264265266
6768697071727374757677
} private TypeCode readTypeCode(CDROutputStream out) { CDRInputStream in = (CDRInputStream) out.create_input_stream(); TypeCode tc = in.read_TypeCode(); return tc; } @Test public void testMultipleReadsAreAnsweredFromCache()