uTools-Manuals/docs/java/org/omg/CORBA/ByteHolder.html

285 lines
12 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
org.omg.CORBA
</div>
<h2 class="title" title="Class ByteHolder">Class ByteHolder</h2>
</div><div class="contentContainer">
<ul class="inheritance">
<li><a href="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.omg.CORBA.ByteHolder</li>
</ul> </li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Implemented Interfaces:
</dt>
<dd>
<span><a href="../../../org/omg/CORBA/portable/Streamable.html" title="界面在org.omg.CORBA.portable中">Streamable</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public final class <span class="typeNameLabel">ByteHolder</span>
extends <a href="../../../java/lang/Object.html" title="class in java.lang">Object</a>
implements <a href="../../../org/omg/CORBA/portable/Streamable.html" title="interface in org.omg.CORBA.portable">Streamable</a></pre>
<div class="block">
<span>持有人为<tt>Byte</tt></span>
<span>有关Holder文件的更多信息请参阅<a href="doc-files/generatedfiles.html#holder">"Generated Files: Holder Files"</a></span>
<p> <span>要的Holder类 <code>byte</code> 其用于存储“out”和“INOUT” IDL方法参数。</span> <span>如果IDL方法签名将IDL <code>octet</code>作为“out”或“INOUT”参数则程序员必须传递的一个实例<code>ByteHolder</code>如在方法调用对应的参数;</span> <span>对于“inout”参数程序员还必须填写要发送到服务器的“in”值。</span> <span>在方法调用返回之前ORB将填写与从服务器返回的“out”值对应的值。</span> </p>
<p> <span>如果<code>myByteHolder</code>是实例<code>ByteHolder</code> ,存储在其值<code>value</code>字段可以与被访问<code>myByteHolder.value</code></span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
JDK1.2
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- --> </a> <h3>Field Summary</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
<caption>
<span>Fields</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/ByteHolder.html#value">value</a></span></code>
<div class="block">
<code>byte</code>持有的
<code>ByteHolder</code>对象。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- --> </a> <h3>构造方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<caption>
<span>构造方法</span>
<span class="tabEnd"> </span>
</caption>
<tbody>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/ByteHolder.html#ByteHolder--">ByteHolder</a></span>()</code>
<div class="block">
构造一个新的
<code>ByteHolder</code>对象,其
<code>value</code>字段初始化为0。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/ByteHolder.html#ByteHolder-byte-">ByteHolder</a></span>(byte initial)</code>
<div class="block">
为给定的
<code>byte</code>构造一个新的
<code>ByteHolder</code>对象。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t4"><span><a href="javascript:show(8);">具体的方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/ByteHolder.html#Z:Z_read-org.omg.CORBA.portable.InputStream-">_read</a></span>(<a href="../../../org/omg/CORBA/portable/InputStream.html" title="class in org.omg.CORBA.portable">InputStream</a> input)</code>
<div class="block">
<code>input</code>读取,并使用未编组数据激活此
<code>ByteHolder</code>对象的值。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code><a href="../../../org/omg/CORBA/TypeCode.html" title="class in org.omg.CORBA">TypeCode</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/ByteHolder.html#Z:Z_type--">_type</a></span>()</code>
<div class="block">
返回与该
<code>ByteHolder</code>对象中保存的值相对应的TypeCode。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/omg/CORBA/ByteHolder.html#Z:Z_write-org.omg.CORBA.portable.OutputStream-">_write</a></span>(<a href="../../../org/omg/CORBA/portable/OutputStream.html" title="class in org.omg.CORBA.portable">OutputStream</a> output)</code>
<div class="block">
<code>ByteHolder</code>对象的
<code>output</code>的值。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- --> </a> <h3>Methods inherited from class java.lang.<a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></h3> <code><a href="../../../java/lang/Object.html#clone--">clone</a>, <a href="../../../java/lang/Object.html#equals-java.lang.Object-">equals</a>, <a href="../../../java/lang/Object.html#finalize--">finalize</a>, <a href="../../../java/lang/Object.html#getClass--">getClass</a>, <a href="../../../java/lang/Object.html#hashCode--">hashCode</a>, <a href="../../../java/lang/Object.html#notify--">notify</a>, <a href="../../../java/lang/Object.html#notifyAll--">notifyAll</a>, <a href="../../../java/lang/Object.html#toString--">toString</a>, <a href="../../../java/lang/Object.html#wait--">wait</a>, <a href="../../../java/lang/Object.html#wait-long-">wait</a>, <a href="../../../java/lang/Object.html#wait-long-int-">wait</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- --> </a> <h3>字段详细信息</h3> <a name="value">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>value</h4> <pre>public byte value</pre>
<div class="block">
<code>byte</code>持有的
<code>ByteHolder</code>对象。
</div> </li>
</ul> </li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- --> </a> <h3>构造方法详细信息</h3> <a name="ByteHolder--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>ByteHolder</h4> <pre>public ByteHolder()</pre>
<div class="block">
构造一个新的
<code>ByteHolder</code>对象,其
<code>value</code>字段初始化为0。
</div> </li>
</ul> <a name="ByteHolder-byte-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>ByteHolder</h4> <pre>public ByteHolder(byte initial)</pre>
<div class="block">
为给定的
<code>byte</code>构造一个新的
<code>ByteHolder</code>对象。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>initial</code> -
<code>byte</code>用于初始化新的
<code>ByteHolder</code>对象的
<code>value</code>字段
</dd>
</dl> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="Z:Z_read-org.omg.CORBA.portable.InputStream-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>_read</h4> <pre>public void _read(<a href="../../../org/omg/CORBA/portable/InputStream.html" title="class in org.omg.CORBA.portable">InputStream</a> input)</pre>
<div class="block">
<code>input</code>读取,并使用未编组的数据激活此
<code>ByteHolder</code>对象的值。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../org/omg/CORBA/portable/Streamable.html#Z:Z_read-org.omg.CORBA.portable.InputStream-">_read</a></code>在接口
<code><a href="../../../org/omg/CORBA/portable/Streamable.html" title="interface in org.omg.CORBA.portable">Streamable</a></code>
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>input</code> - 包含电线中CDR格式数据的InputStream。
</dd>
</dl> </li>
</ul> <a name="Z:Z_write-org.omg.CORBA.portable.OutputStream-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>_write</h4> <pre>public void _write(<a href="../../../org/omg/CORBA/portable/OutputStream.html" title="class in org.omg.CORBA.portable">OutputStream</a> output)</pre>
<div class="block">
<code>ByteHolder</code>对象的
<code>output</code>的值。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../org/omg/CORBA/portable/Streamable.html#Z:Z_write-org.omg.CORBA.portable.OutputStream-">_write</a></code>在界面
<code><a href="../../../org/omg/CORBA/portable/Streamable.html" title="interface in org.omg.CORBA.portable">Streamable</a></code>
</dd>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>output</code> - 将包含CDR格式数据的OutputStream。
</dd>
</dl> </li>
</ul> <a name="Z:Z_type--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>_type</h4> <pre>public <a href="../../../org/omg/CORBA/TypeCode.html" title="class in org.omg.CORBA">TypeCode</a> _type()</pre>
<div class="block">
返回与该
<code>ByteHolder</code>对象中保存的值相对应的TypeCode。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../org/omg/CORBA/portable/Streamable.html#Z:Z_type--">_type</a></code>在界面
<code><a href="../../../org/omg/CORBA/portable/Streamable.html" title="interface in org.omg.CORBA.portable">Streamable</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
该值保存在该
<code>ByteHolder</code>对象中的TypeCode
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>