chatclientapplet_stub.java

来自「基于Java RMI开发的一个网络聊天室源码」· Java 代码 · 共 63 行

JAVA
63
字号
// Stub class generated by rmic, do not edit.
// Contents subject to change without notice.

package chatrmio;

public final class ChatClientApplet_Stub
    extends java.rmi.server.RemoteStub
    implements chatrmio.IChatClient
{
    private static final long serialVersionUID = 2;
    
    private static java.lang.reflect.Method $method_getName_0;
    private static java.lang.reflect.Method $method_sendMessage_1;
    
    static {
	try {
	    $method_getName_0 = chatrmio.IChatClient.class.getMethod("getName", new java.lang.Class[] {});
	    $method_sendMessage_1 = chatrmio.IChatClient.class.getMethod("sendMessage", new java.lang.Class[] {java.lang.String.class});
	} catch (java.lang.NoSuchMethodException e) {
	    throw new java.lang.NoSuchMethodError(
		"stub class initialization failed");
	}
    }
    
    // constructors
    public ChatClientApplet_Stub(java.rmi.server.RemoteRef ref) {
	super(ref);
    }
    
    // methods from remote interfaces
    
    // implementation of getName()
    public java.lang.String getName()
	throws java.rmi.RemoteException
    {
	try {
	    Object $result = ref.invoke(this, $method_getName_0, null, 6317137956467216454L);
	    return ((java.lang.String) $result);
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
    
    // implementation of sendMessage(String)
    public void sendMessage(java.lang.String $param_String_1)
	throws java.rmi.RemoteException
    {
	try {
	    ref.invoke(this, $method_sendMessage_1, new java.lang.Object[] {$param_String_1}, -4245573194930925292L);
	} catch (java.lang.RuntimeException e) {
	    throw e;
	} catch (java.rmi.RemoteException e) {
	    throw e;
	} catch (java.lang.Exception e) {
	    throw new java.rmi.UnexpectedException("undeclared checked exception", e);
	}
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?