JavaTM 2 Platform
Standard Ed. 6

org.omg.CORBA
接口 CustomMarshal

所有已知子接口:
CustomValue

public interface CustomMarshal

将由 ORB 而不是由用户使用的抽象 value 类型。从语义上说,此类被视为自定义 value 类型的隐式基类,尽管在 IDL 中自定义 value 类型实际上并没有继承它。自定义值类型的实现方应提供 CustomMarshal 操作的实现。实现该操作的方式在 IDL 到 Java 语言映射中指定。每种自定义编组值类型都应该有它自己的实现。

另请参见:
DataInputStream

方法摘要
 void marshal(DataOutputStream os)
          必须通过自定义的 Marshal 类实现 marshal 方法。
 void unmarshal(DataInputStream is)
          必须通过自定义的 Marshal 类实现 unmarshal 方法。
 

方法详细信息

marshal

void marshal(DataOutputStream os)
必须通过自定义的 Marshal 类实现 marshal 方法。这是用来编组的方法。

参数:
os - DataOutputStream

unmarshal

void unmarshal(DataInputStream is)
必须通过自定义的 Marshal 类实现 unmarshal 方法。这是用来解组的方法。

参数:
is - DataInputStream

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only