コード例 #1
0
 /**
  * Fill in the {@link value } field by reading the required data from the given stream. This
  * method first reads the array size (as CORBA <code>long</code>) and then calls the {@link
  * org.omg.CORBA.portable.InputStream#read_ushort_array }.
  *
  * @param input the input stream to read from.
  */
 public void _read(InputStream input) {
   value = new short[input.read_long()];
   input.read_ushort_array(value, 0, value.length);
   typecode.setLength(value.length);
 }
コード例 #2
0
 /**
  * Constructs an instance of UShortSeqHolder, initializing {@link #value} to the given <code>
  * short[]</code>.
  *
  * @param initial_value a value that will be assigned to the {@link #value} field.
  */
 public UShortSeqHolder(short[] initial_value) {
   value = initial_value;
   typecode.setLength(value.length);
 }