taggedprofilefactoryfinder.java
来自「java jdk 1.4的源码」· Java 代码 · 共 55 行
JAVA
55 行
/* * @(#)TaggedProfileFactoryFinder.java 1.13 03/01/23 * * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. *///Source file: J:/ws/serveractivation/src/share/classes/com.sun.corba.se.internal.ior/TaggedProfileFactoryFinder.javapackage com.sun.corba.se.internal.ior;import com.sun.corba.se.internal.ior.IdEncapsulationFactoryFinder ;import com.sun.corba.se.internal.ior.IIOPProfile ;import com.sun.corba.se.internal.ior.GenericTaggedProfile ;import org.omg.IOP.TAG_INTERNET_IOP ;import org.omg.CORBA_2_3.portable.InputStream ;/** * @author */public class TaggedProfileFactoryFinder implements IdEncapsulationFactoryFinder { private TaggedProfileFactoryFinder() { } // initialize-on-demand holder private static class TaggedProfileFactoryFinderHolder { static TaggedProfileFactoryFinder value = new TaggedProfileFactoryFinder() ; } public static TaggedProfileFactoryFinder getFinder() { return TaggedProfileFactoryFinderHolder.value ; } /** Reads the TaggedProfile of type id from is. * @param id * @param is * @return IdEncapsulation * @exception * @author * @roseuid 39135AC6012F */ public IdEncapsulation create(int id, InputStream is) { if (id == TAG_INTERNET_IOP.value) return new IIOPProfile( is ) ; else return new GenericTaggedProfile( id, is ) ; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?