本文整理汇总了Java中org.omg.CORBA.portable.InputStream.read_any方法的典型用法代码示例。如果您正苦于以下问题:Java InputStream.read_any方法的具体用法?Java InputStream.read_any怎么用?Java InputStream.read_any使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.omg.CORBA.portable.InputStream
的用法示例。
在下文中一共展示了InputStream.read_any方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readAny
import org.omg.CORBA.portable.InputStream; //导入方法依赖的package包/类
/**
* Reads a java.lang.Object as a CORBA any.
* @param in the stream from which to read the any.
* @return the object read from the stream.
*/
public Object readAny(InputStream in)
{
Any any = in.read_any();
if ( any.type().kind().value() == TCKind._tk_objref )
return any.extract_Object ();
else
return any.extract_Value();
}
示例2: _read
import org.omg.CORBA.portable.InputStream; //导入方法依赖的package包/类
/**
* Reads from <code>input</code> and initalizes the value in the Holder
* with the unmarshalled data.
*
* @param input the InputStream containing CDR formatted data from the wire.
*/
public void _read(InputStream input) {
value = input.read_any();
}
示例3: _read
import org.omg.CORBA.portable.InputStream; //导入方法依赖的package包/类
/**
* Reads from {@code input} and initalizes the value in the Holder
* with the unmarshalled data.
*
* @param input the InputStream containing CDR formatted data from the wire.
*/
public void _read(InputStream input) {
value = input.read_any();
}