本文整理汇总了Java中com.sun.corba.se.spi.ior.WriteContents类的典型用法代码示例。如果您正苦于以下问题:Java WriteContents类的具体用法?Java WriteContents怎么用?Java WriteContents使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WriteContents类属于com.sun.corba.se.spi.ior包,在下文中一共展示了WriteContents类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeEncapsulation
import com.sun.corba.se.spi.ior.WriteContents; //导入依赖的package包/类
static public void writeEncapsulation( WriteContents obj,
OutputStream os )
{
EncapsOutputStream out =
sun.corba.OutputStreamFactory.newEncapsOutputStream((ORB)os.orb());
out.putEndian() ;
obj.writeContents( out ) ;
writeOutputStream( out, os ) ;
}
示例2: writeEncapsulation
import com.sun.corba.se.spi.ior.WriteContents; //导入依赖的package包/类
static public void writeEncapsulation( WriteContents obj,
OutputStream os )
{
EncapsOutputStream out = new EncapsOutputStream( (ORB)os.orb() ) ;
out.putEndian() ;
obj.writeContents( out ) ;
writeOutputStream( out, os ) ;
}
示例3: write
import com.sun.corba.se.spi.ior.WriteContents; //导入依赖的package包/类
/** Write the data for this object as a CDR encapsulation.
* This is used for writing tagged components and profiles.
* These data types must be written out as encapsulations,
* which means that we need to first write the data out to
* an encapsulation stream, then extract the data and write
* it to os as an array of octets.
*/
final public void write( OutputStream os )
{
EncapsulationUtility.writeEncapsulation( (WriteContents)this, os ) ;
}