⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chatservice_stub.java

📁 这个工程里包括了Java Applet客户端和J Frame客户端的RMI聊天室的程序。
💻 JAVA
字号:
// Stub class generated by rmic, do not edit.
// Contents subject to change without notice.

package chatrmi0;

public final class ChatService_Stub
    extends java.rmi.server.RemoteStub
    implements chatrmi0.IChatService, java.rmi.Remote
{
    private static final long serialVersionUID = 2;
    
    private static java.lang.reflect.Method $method_addClient_0;
    private static java.lang.reflect.Method $method_removeClient_1;
    private static java.lang.reflect.Method $method_sendMessage_2;
    
    static {
	try {
	    $method_addClient_0 = chatrmi0.IChatService.class.getMethod("addClient", new java.lang.Class[] {chatrmi0.IChatClient.class, java.lang.String.class});
	    $method_removeClient_1 = chatrmi0.IChatService.class.getMethod("removeClient", new java.lang.Class[] {chatrmi0.IChatClient.class, java.lang.String.class});
	    $method_sendMessage_2 = chatrmi0.IChatService.class.getMethod("sendMessage", new java.lang.Class[] {chatrmi0.IChatClient.class, java.lang.String.class});
	} catch (java.lang.NoSuchMethodException e) {
	    throw new java.lang.NoSuchMethodError(
		"stub class initialization failed");
	}
    }
    
    // constructors
    public ChatService_Stub(java.rmi.server.RemoteRef ref) {
	super(ref);
    }
    
    // methods from remote interfaces
    
    // implementation of addClient(IChatClient, String)
    public void addClient(chatrmi0.IChatClient $param_IChatClient_1, java.lang.String $param_String_2)
	throws java.rmi.RemoteException
    {
	try {
	    ref.invoke(this, $method_addClient_0, new java.lang.Object[] {$param_IChatClient_1, $param_String_2}, 6923106973180800147L);
	} 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 removeClient(IChatClient, String)
    public void removeClient(chatrmi0.IChatClient $param_IChatClient_1, java.lang.String $param_String_2)
	throws java.rmi.RemoteException
    {
	try {
	    ref.invoke(this, $method_removeClient_1, new java.lang.Object[] {$param_IChatClient_1, $param_String_2}, -5514368451306081299L);
	} 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(IChatClient, String)
    public void sendMessage(chatrmi0.IChatClient $param_IChatClient_1, java.lang.String $param_String_2)
	throws java.rmi.RemoteException
    {
	try {
	    ref.invoke(this, $method_sendMessage_2, new java.lang.Object[] {$param_IChatClient_1, $param_String_2}, 5835355681389798666L);
	} 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -