📄 maxstreamformatversionservicecontext.java
字号:
/* * @(#)MaxStreamFormatVersionServiceContext.java 1.8 04/06/21 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. *//** * @(#)MaxStreamFormatVersionServiceContext.java 1.8 04/06/21 */package com.sun.corba.se.spi.servicecontext;import org.omg.IOP.RMICustomMaxStreamFormat;import javax.rmi.CORBA.*;import org.omg.CORBA.SystemException;import org.omg.CORBA_2_3.portable.InputStream;import org.omg.CORBA_2_3.portable.OutputStream;import com.sun.corba.se.spi.ior.iiop.GIOPVersion;import com.sun.corba.se.impl.encoding.MarshalInputStream;import com.sun.corba.se.impl.encoding.MarshalOutputStream;import com.sun.corba.se.impl.orbutil.ORBUtility;public class MaxStreamFormatVersionServiceContext extends ServiceContext { private byte maxStreamFormatVersion; // The singleton uses the maximum version indicated by our // ValueHandler. public static final MaxStreamFormatVersionServiceContext singleton = new MaxStreamFormatVersionServiceContext(); public MaxStreamFormatVersionServiceContext() { maxStreamFormatVersion = ORBUtility.getMaxStreamFormatVersion(); } public MaxStreamFormatVersionServiceContext(byte maxStreamFormatVersion) { this.maxStreamFormatVersion = maxStreamFormatVersion; } public MaxStreamFormatVersionServiceContext(InputStream is, GIOPVersion gv) { super(is, gv) ; maxStreamFormatVersion = is.read_octet(); } public static final int SERVICE_CONTEXT_ID = RMICustomMaxStreamFormat.value; public int getId() { return SERVICE_CONTEXT_ID; } public void writeData(OutputStream os) throws SystemException { os.write_octet(maxStreamFormatVersion); } public byte getMaximumStreamFormatVersion() { return maxStreamFormatVersion; } public String toString() { return "MaxStreamFormatVersionServiceContext[" + maxStreamFormatVersion + "]"; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -