• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java TypeCodeHelper类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中gnu.CORBA.TypeCodeHelper的典型用法代码示例。如果您正苦于以下问题:Java TypeCodeHelper类的具体用法?Java TypeCodeHelper怎么用?Java TypeCodeHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

TypeCodeHelper类属于gnu.CORBA包,在下文中一共展示了TypeCodeHelper类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: read

点赞 3

import gnu.CORBA.TypeCodeHelper; //导入依赖的package包/类
/**
 * Read the StructMember from the input stream.
 */
public static StructMember read(InputStream istream)
{
  try
    {
      StructMember value = new StructMember();
      value.name = istream.read_string();
      value.type = TypeCodeHelper.read(istream);
      value.type_def = IDLTypeHelper.read(istream);
      return value;
    }
  catch (UserException ex)
    {
      MARSHAL m = new MARSHAL();
      m.minor = Minor.UserException;
      m.initCause(ex);
      throw m;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:22,
代码来源:StructMemberHelper.java

示例2: write

点赞 3

import gnu.CORBA.TypeCodeHelper; //导入依赖的package包/类
/**
 * Write the StructMember to the input stream.
 */
public static void write(OutputStream ostream, StructMember value)
{
  try
    {
      ostream.write_string(value.name);
      TypeCodeHelper.write(ostream, value.type);
      IDLTypeHelper.write(ostream, value.type_def);
    }
  catch (UserException ex)
    {
      MARSHAL m = new MARSHAL();
      m.minor = Minor.UserException;
      m.initCause(ex);
      throw m;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:20,
代码来源:StructMemberHelper.java

示例3: read

点赞 3

import gnu.CORBA.TypeCodeHelper; //导入依赖的package包/类
/**
 * Read the union member from the given stream.
 */
public static UnionMember read(InputStream istream)
{
  try
    {
      UnionMember value = new UnionMember();
      value.name = istream.read_string();
      value.label = istream.read_any();
      value.type = TypeCodeHelper.read(istream);
      value.type_def = IDLTypeHelper.read(istream);
      return value;
    }
  catch (UserException ex)
    {
      MARSHAL m = new MARSHAL();
      m.minor = Minor.UserException;
      m.initCause(ex);
      throw m;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:23,
代码来源:UnionMemberHelper.java

示例4: write

点赞 3

import gnu.CORBA.TypeCodeHelper; //导入依赖的package包/类
/**
 * Write the union member to the given stream.
 */
public static void write(OutputStream ostream, UnionMember value)
{
  try
    {
      ostream.write_string(value.name);
      ostream.write_any(value.label);
      TypeCodeHelper.write(ostream, value.type);
      IDLTypeHelper.write(ostream, value.type_def);
    }
  catch (UserException ex)
    {
      MARSHAL m = new MARSHAL();
      m.minor = Minor.UserException;
      m.initCause(ex);
      throw m;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:21,
代码来源:UnionMemberHelper.java

示例5: read

点赞 3

import gnu.CORBA.TypeCodeHelper; //导入依赖的package包/类
/**
 * Reads the value member from the given stream.
 */
public static ValueMember read(InputStream istream)
{
  try
    {
      ValueMember value = new ValueMember();
      value.name = istream.read_string();
      value.id = istream.read_string();
      value.defined_in = istream.read_string();
      value.version = istream.read_string();
      value.type = TypeCodeHelper.read(istream);
      value.type_def = IDLTypeHelper.read(istream);
      value.access = istream.read_short();
      return value;
    }
  catch (UserException ex)
    {
      MARSHAL m = new MARSHAL();
      m.minor = Minor.UserException;
      m.initCause(ex);
      throw m;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:26,
代码来源:ValueMemberHelper.java

示例6: write

点赞 3

import gnu.CORBA.TypeCodeHelper; //导入依赖的package包/类
/**
 * Writes the value member to the given stream.
 */
public static void write(OutputStream ostream, ValueMember value)
{
  try
    {
      ostream.write_string(value.name);
      ostream.write_string(value.id);
      ostream.write_string(value.defined_in);
      ostream.write_string(value.version);
      TypeCodeHelper.write(ostream, value.type);
      IDLTypeHelper.write(ostream, value.type_def);
      ostream.write_short(value.access);
    }
  catch (UserException ex)
    {
      MARSHAL m = new MARSHAL();
      m.minor = Minor.UserException;
      m.initCause(ex);
      throw m;
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:24,
代码来源:ValueMemberHelper.java

示例7: write

点赞 3

import gnu.CORBA.TypeCodeHelper; //导入依赖的package包/类
/**
 * Write the union member to the given stream.
 */
public static void write(OutputStream ostream, UnionMember value)
{
  try
    {
      ostream.write_string(value.name);
      ostream.write_any(value.label);
      TypeCodeHelper.write(ostream, value.type);
      IDLTypeHelper.write(ostream, value.type_def);
    }
  catch (UserException ex)
    {
      MARSHAL m = new MARSHAL();
      m.minor = Minor.UserException;        
      m.initCause(ex);
      throw m;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:21,
代码来源:UnionMemberHelper.java

示例8: read

点赞 3

import gnu.CORBA.TypeCodeHelper; //导入依赖的package包/类
/**
 * Reads the value member from the given stream.
 */
public static ValueMember read(InputStream istream)
{
  try
    {
      ValueMember value = new ValueMember();
      value.name = istream.read_string();
      value.id = istream.read_string();
      value.defined_in = istream.read_string();
      value.version = istream.read_string();
      value.type = TypeCodeHelper.read(istream);
      value.type_def = IDLTypeHelper.read(istream);
      value.access = istream.read_short();
      return value;
    }
  catch (UserException ex)
    {
      MARSHAL m = new MARSHAL();
      m.minor = Minor.UserException;        
      m.initCause(ex);
      throw m;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:26,
代码来源:ValueMemberHelper.java

示例9: write

点赞 3

import gnu.CORBA.TypeCodeHelper; //导入依赖的package包/类
/**
 * Writes the value member to the given stream.
 */
public static void write(OutputStream ostream, ValueMember value)
{
  try
    {
      ostream.write_string(value.name);
      ostream.write_string(value.id);
      ostream.write_string(value.defined_in);
      ostream.write_string(value.version);
      TypeCodeHelper.write(ostream, value.type);
      IDLTypeHelper.write(ostream, value.type_def);
      ostream.write_short(value.access);
    }
  catch (UserException ex)
    {
      MARSHAL m = new MARSHAL();
      m.minor = Minor.UserException;        
      m.initCause(ex);
      throw m;
    }
}
 

开发者ID:nmldiegues,
项目名称:jvm-stm,
代码行数:24,
代码来源:ValueMemberHelper.java

示例10: write_TypeCode

点赞 2

import gnu.CORBA.TypeCodeHelper; //导入依赖的package包/类
/**
 * Write the TypeCode. This implementation delegates functionality
 * to {@link cdrTypeCode}.
 *
 * @param x a TypeCode to write.
 */
public void write_TypeCode(TypeCode x)
{
  try
    {
      TypeCodeHelper.write(this, x);
    }
  catch (UserException ex)
    {
      Unexpected.error(ex);
    }
}
 

开发者ID:vilie,
项目名称:javify,
代码行数:18,
代码来源:AbstractCdrOutput.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)