📄 rmiserverimpl_skel.java
字号:
// Skeleton class generated by rmic, do not edit.
// Contents subject to change without notice.
package com.tech.search;
public final class RmiServerImpl_Skel
implements java.rmi.server.Skeleton
{
private static final java.rmi.server.Operation[] operations = {
new java.rmi.server.Operation("int add(int, int)")
};
private static final long interfaceHash = -6974251258327884384L;
public java.rmi.server.Operation[] getOperations() {
return (java.rmi.server.Operation[]) operations.clone();
}
public void dispatch(java.rmi.Remote obj, java.rmi.server.RemoteCall call, int opnum, long hash)
throws java.lang.Exception
{
if (opnum < 0) {
if (hash == -7734458262622125146L) {
opnum = 0;
} else {
throw new java.rmi.UnmarshalException("invalid method hash");
}
} else {
if (hash != interfaceHash)
throw new java.rmi.server.SkeletonMismatchException("interface hash mismatch");
}
com.tech.search.RmiServerImpl server = (com.tech.search.RmiServerImpl) obj;
switch (opnum) {
case 0: // add(int, int)
{
int $param_int_1;
int $param_int_2;
try {
java.io.ObjectInput in = call.getInputStream();
$param_int_1 = in.readInt();
$param_int_2 = in.readInt();
} catch (java.io.IOException e) {
throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
} finally {
call.releaseInputStream();
}
int $result = server.add($param_int_1, $param_int_2);
try {
java.io.ObjectOutput out = call.getResultStream(true);
out.writeInt($result);
} catch (java.io.IOException e) {
throw new java.rmi.MarshalException("error marshalling return", e);
}
break;
}
default:
throw new java.rmi.UnmarshalException("invalid method number");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -