newstringhelper.java

来自「本系统是基于CORBA实现的选课系统,具有一般选课系统的基本功能(查看学生基本信」· Java 代码 · 共 67 行

JAVA
67
字号
package choose.xuankePackage;


/**
* choose/xuankePackage/newstringHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from choose.idl
* 2006年12月17日 星期日 下午04时47分39秒 CST
*/

abstract public class newstringHelper
{
  private static String  _id = "IDL:choose/xuanke/newstring:1.0";

  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 ());
  }

  public static String[] extract (org.omg.CORBA.Any a)
  {
    return read (a.create_input_stream ());
  }

  private static org.omg.CORBA.TypeCode __typeCode = null;
  synchronized public static org.omg.CORBA.TypeCode type ()
  {
    if (__typeCode == null)
    {
      __typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
      __typeCode = org.omg.CORBA.ORB.init ().create_array_tc (20, __typeCode );
      __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (choose.xuankePackage.newstringHelper.id (), "newstring", __typeCode);
    }
    return __typeCode;
  }

  public static String id ()
  {
    return _id;
  }

  public static String[] read (org.omg.CORBA.portable.InputStream istream)
  {
    String value[] = null;
    value = new String[20];
    for (int _o0 = 0;_o0 < (20); ++_o0)
    {
      value[_o0] = istream.read_string ();
    }
    return value;
  }

  public static void write (org.omg.CORBA.portable.OutputStream ostream, String[] value)
  {
    if (value.length != (20))
      throw new org.omg.CORBA.MARSHAL (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
    for (int _i0 = 0;_i0 < (20); ++_i0)
    {
      ostream.write_string (value[_i0]);
    }
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?