/** * Read an array. In OMG specification is written that if the data does not * fit into the holder value field, that array must be resized. The * implementation follows this rule. If the holder value field contains null, * it is newly instantiated. */ public void read_any_array(AnySeqHolder holder, int offset, int length) { holder.value = ensureArray(holder.value, offset, length); for (int i = offset; i < offset + length; i++) { holder.value[i] = read_any(); } }
/** * Delegates functionality to the underlying stream. */ public void read_any_array(AnySeqHolder holder, int offset, int length) { stream.read_any_array(holder, offset, length); }