⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bytearrayhelper.java

📁 使用方法: 实例程序的运行: 每个实例下都有本实例的.xml文件或.html文件或.xsl文件
💻 JAVA
字号:
package org.xbeans.communication.corba;
/**
<p>
<ul>
<li> <b>Java Class</b> org.xbeans.communication.corba.byteArrayHelper
<li> <b>Source File</b> org/xbeans/communication/corba/byteArrayHelper.java
<li> <b>IDL Source File</b> D://Documents//MageLang//Xbean//source//XMLReceiver.idl
<li> <b>IDL Absolute Name</b> ::org::xbeans::communication::corba::byteArray
<li> <b>Repository Identifier</b> IDL:org/xbeans/communication/corba/byteArray:1.0
</ul>
<b>IDL definition:</b>
<pre>
    #pragma prefix "org/xbeans/communication/corba"
    typedef sequence&ltoctet&gt byteArray;
</pre>
</p>
*/
abstract public class byteArrayHelper {
  private static org.omg.CORBA.ORB _orb() {
    return org.omg.CORBA.ORB.init();
  }
  public static byte[] read(org.omg.CORBA.portable.InputStream _input) {
    byte[] result;
    {
      int _length3 = _input.read_long();
      result = new byte[_length3];
      _input.read_octet_array(result, 0, _length3);
    }
    return result;
  }
  public static void write(org.omg.CORBA.portable.OutputStream _output, byte[] value) {
    _output.write_long(value.length);
    _output.write_octet_array(value, 0, value.length);
  }
  public static void insert(org.omg.CORBA.Any any, byte[] value) {
    org.omg.CORBA.portable.OutputStream output = any.create_output_stream();
    write(output, value);
    any.read_value(output.create_input_stream(), type());
  }
  public static byte[] extract(org.omg.CORBA.Any any) {
    if(!any.type().equal(type())) {
      throw new org.omg.CORBA.BAD_TYPECODE();
    }
    return read(any.create_input_stream());
  }
  private static org.omg.CORBA.TypeCode _type;
  public static org.omg.CORBA.TypeCode type() {
    if(_type == null) {
      org.omg.CORBA.TypeCode original_type = _orb().create_sequence_tc(0, _orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_octet));
      _type = _orb().create_alias_tc(id(), "byteArray", original_type);
    }
    return _type;
  }
  public static java.lang.String id() {
    return "IDL:org/xbeans/communication/corba/byteArray:1.0";
  }
}

⌨️ 快捷键说明

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