/** * Writes to this stream a value header with the specified `repository_id' * and no codebase string. */ private void write_value_header(final String[] repository_ids) { if (repository_ids != null) { if( repository_ids.length > 1 ) { // truncatable value type, must use chunking! chunkingFlag = 0x00000008; write_long (0x7fffff06 | chunkingFlag); write_long( repository_ids.length ); for( int i = 0; i < repository_ids.length; i++ ) { write_repository_id (repository_ids[i]); } } else { write_long (0x7fffff02 | chunkingFlag); write_repository_id (repository_ids[0]); } } else { write_long (0x7fffff00 | chunkingFlag); } }
write_repository_id (repository_ids[i]); write_repository_id (repository_ids[0]);
@Override public void write_value(final java.io.Serializable value, final org.omg.CORBA.portable.BoxedValueHelper factory) { if (!write_special_value (value)) { write_previous_chunk_size(); check(7,4); getValueMap().put (value, Integer.valueOf(size())); if (((value instanceof org.omg.CORBA.portable.IDLEntity) || isSimpleString(value, factory))) { write_long (0x7fffff00 | chunkingFlag); } else { // repository id is required for RMI: types write_long (0x7fffff02 | chunkingFlag); final String repId = factory.get_id(); write_repository_id (repId); } start_chunk(); factory.write_value (this, value); end_chunk(); } }