public final class IntHolder extends Object implements Streamable
 用于A Holder类int被用来存储“out”和“INOUT” IDL方法参数。 如果IDL方法签名将IDL long作为“out”或“INOUT”参数,则程序员必须传递的一个实例IntHolder如在方法调用对应的参数; 对于“inout”参数,程序员还必须填写要发送到服务器的“in”值。 在方法调用返回之前,ORB将填写与从服务器返回的“out”值对应的值。 
 如果myIntHolder是实例IntHolder ,存储在其值value字段可以与被访问myIntHolder.value 。 
| Modifier and Type | Field and Description | 
|---|---|
| int | value
              由 
              IntHolder对象在其value字段中持有的int值。 | 
| Constructor and Description | 
|---|
| IntHolder()
              构造一个新的 
              IntHolder对象,其value字段初始化为0。 | 
| IntHolder(int initial)
              构造一个新的 
              IntHolder对象,其value字段初始化为给定的int。 | 
| Modifier and Type | Method and Description | 
|---|---|
| void | _read(InputStream input)
              从读出解组数据 
              input,并将其分配到value在这一领域IntHolder对象。 | 
| TypeCode | _type()
              检索 
              TypeCode对应于该保存的值对象IntHolder对象value场。 | 
| void | _write(OutputStream output)
              将此 
              IntHolder对象的value字段中的值value到输出流output。 | 
public IntHolder()
IntHolder对象,其 
           value字段初始化为 
           0 。 
          public IntHolder(int initial)
IntHolder对象,其 
           value字段初始化为给定的 
           int 。 
          initial - 
            int用于初始化新创建的 
            IntHolder对象的 
            value字段 
           public void _read(InputStream input)
input ,并将其分配到 
           value在这一领域 
           IntHolder对象。 
          _read在接口 
            Streamable 
           input - 
            InputStream对象,其中包含来自电线的CDR格式数据 
           public void _write(OutputStream output)
IntHolder对象的 
           value字段中的值 
           value到输出流 
           output 。 
          _write在界面 
            Streamable 
           output - 将包含CDR格式数据的 
            OutputStream对象 
           public TypeCode _type()
TypeCode对应于该保存的值对象 
           IntHolder对象 
           value场。 
          _type在界面 
            Streamable 
           IntHolder对象中保存的值的类型代码 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.