本文整理汇总了Java中org.omg.CORBA.DataOutputStream类的典型用法代码示例。如果您正苦于以下问题:Java DataOutputStream类的具体用法?Java DataOutputStream怎么用?Java DataOutputStream使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DataOutputStream类属于org.omg.CORBA包,在下文中一共展示了DataOutputStream类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeSelf
import org.omg.CORBA.DataOutputStream; //导入依赖的package包/类
/**
* Try to write value supposing that it implements self-streamable interfaces.
* Return false if it does not or true on success.
*/
static boolean writeSelf(OutputStream output, Serializable value)
{
// User defined write method is present.
if (value instanceof CustomMarshal)
{
((CustomMarshal) value).marshal((DataOutputStream) output);
return true;
}
else if (value instanceof Streamable)
{
((Streamable) value)._write(output);
return true;
}
return false;
}
示例2: marshal
import org.omg.CORBA.DataOutputStream; //导入依赖的package包/类
/**
* Marshal method has to be implemented by the Customized Marshal class.
* This is the method invoked for Marshalling.
*
* @param os a DataOutputStream
*/
void marshal(DataOutputStream os);