-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHello_Stub.java~
47 lines (42 loc) · 1.56 KB
/
Hello_Stub.java~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Decompiled by DJ v3.2.2.67 Copyright 2002 Atanas Neshkov Date: 1/22/03 1:40:21 AM
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
import java.io.*;
import java.lang.*;
import java.lang.reflect.*;
import java.util.*;
import java.rmi.*;
import java.rmi.server.*;
public final class Hello_Stub extends NERemoteObjectStub implements HelloInterface, NERemote {
public Hello_Stub () {
}
public String sayHello (String s) throws NERemoteException {
try {
Class<?>[] argTypes = { String.class };
boolean[] argRemotes = { false };
Serializable[] arguments = { s };
NEMessageable message =
new NEMethodInvocation
(HelloInterface.class, "sayHello", argTypes, arguments, argRemotes);
FileOutputStream out = new FileOutputStream ("out");
NEMarshaller.marshal (message, out);
Scanner inp = new Scanner (System.in);
inp.nextLine ();
FileInputStream filein = new FileInputStream ("in");
ObjectInputStream in = new ObjectInputStream (filein);
NEReturnValue rv = (NEReturnValue) in.readObject ();
String result = (String) NEDemarshaller.demarshalReturnValue (rv);
return result;
}
catch (RuntimeException runtimeexception) {
throw runtimeexception;
}
catch (NERemoteException remoteexception) {
throw remoteexception;
}
catch (Exception exception) {
//throw new UnexpectedException("undeclared checked exception", exception);
}
return null;
}
}