iiopaddressimpl.java
来自「java jdk 1.4的源码」· Java 代码 · 共 51 行
JAVA
51 行
/* * @(#)IIOPAddressImpl.java 1.3 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/IIOPAddress.javapackage com.sun.corba.se.internal.ior;import org.omg.CORBA.BAD_PARAM ;import org.omg.CORBA_2_3.portable.InputStream ;import org.omg.CORBA_2_3.portable.OutputStream ;/** * @author */public final class IIOPAddressImpl extends IIOPAddressBase{ private String host; private int port; public IIOPAddressImpl( String host, int port ) { if ((port < 0) || (port > 65535)) throw new BAD_PARAM() ; this.host = host ; this.port = port ; } public IIOPAddressImpl( InputStream is ) { host = is.read_string() ; short thePort = is.read_short() ; port = shortToInt( thePort ) ; } public String getHost() { return host ; } public int getPort() { return port ; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?