当前位置: 首页>>代码示例>>Java>>正文


Java WriteContents类代码示例

本文整理汇总了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 ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:13,代码来源:EncapsulationUtility.java

示例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 ) ;
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:12,代码来源:EncapsulationUtility.java

示例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 ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:IdentifiableBase.java


注:本文中的com.sun.corba.se.spi.ior.WriteContents类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。