identifiablebase.java
来自「JAVA的一些源码 JAVA2 STANDARD EDITION DEVELO」· Java 代码 · 共 36 行
JAVA
36 行
/* * @(#)IdentifiableBase.java 1.7 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.spi.ior;import org.omg.CORBA_2_3.portable.OutputStream ;import com.sun.corba.se.spi.ior.Writeable ;import com.sun.corba.se.spi.ior.WriteContents ;import com.sun.corba.se.spi.orb.ORB ;import com.sun.corba.se.impl.ior.EncapsulationUtility ;/** Provide support for properly reading and writing Identifiable objects* that are also encapsulations (tagged profiles and components).*/public abstract class IdentifiableBase implements Identifiable, WriteContents{ /** 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 ) ; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?