/*
 * File: ./REMOTEINTERFACE/ARGSHELPER.JAVA
 * From: REMOTE.IDL
 * Date: Thu Jan 21 23:55:04 1999
 *   By: C:\JDK1.2\BIN\IDLTOJ~1.EXE Java IDL 1.2 Nov 10 1997 13:52:11
 */

package RemoteInterface;
public class argsHelper {
     // It is useless to have instances of this class
     private argsHelper() { }

    public static void write(org.omg.CORBA.portable.OutputStream out, String[] that)  {
          {
              out.write_long(that.length);
              for (int __index = 0 ; __index < that.length ; __index += 1) {
                  out.write_string(that[__index]);
              }
          }
    }
    public static String[] read(org.omg.CORBA.portable.InputStream in) {
          String[] that;
          {
              int __length = in.read_long();
              that = new String[__length];
              for (int __index = 0 ; __index < that.length ; __index += 1) {
                  that[__index] = in.read_string();
              }
          }
          return that;
    }
   public static String[] extract(org.omg.CORBA.Any a) {
     org.omg.CORBA.portable.InputStream in = a.create_input_stream();
     return read(in);
   }
   public static void insert(org.omg.CORBA.Any a, String[] that) {
     org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
     a.type(type());
     write(out, that);
     a.read_value(out.create_input_stream(), type());
   }
   private static org.omg.CORBA.TypeCode _tc;
   synchronized public static org.omg.CORBA.TypeCode type() {
          if (_tc == null)
             _tc = org.omg.CORBA.ORB.init().create_alias_tc(id(), "args", org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_string)));
      return _tc;
   }
   public static String id() {
       return "IDL:RemoteInterface/args:1.0";
   }
}
