1 /*
2  * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This code is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 only, as
7  * published by the Free Software Foundation.
8  *
9  * This code is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  * version 2 for more details (a copy is included in the LICENSE file that
13  * accompanied this code).
14  *
15  * You should have received a copy of the GNU General Public License version
16  * 2 along with this work; if not, write to the Free Software Foundation,
17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20  * or visit www.oracle.com if you need additional information or have any
21  * questions.
22  */
23 
24 // Stub class generated by rmic, do not edit.
25 // Contents subject to change without notice.
26 
27 public final class EchoImpl_Stub
28     extends java.rmi.server.RemoteStub
29     implements Echo, java.rmi.Remote
30 {
31     private static final long serialVersionUID = 2;
32 
33     private static java.lang.reflect.Method $method_echoNot_0;
34     private static java.lang.reflect.Method $method_shutdown_1;
35 
36     static {
37         try {
38             $method_echoNot_0 = Echo.class.getMethod("echoNot", new java.lang.Class[] {byte[].class});
39             $method_shutdown_1 = Echo.class.getMethod("shutdown", new java.lang.Class[] {});
40         } catch (java.lang.NoSuchMethodException e) {
41             throw new java.lang.NoSuchMethodError(
42                 "stub class initialization failed");
43         }
44     }
45 
46     // constructors
EchoImpl_Stub(java.rmi.server.RemoteRef ref)47     public EchoImpl_Stub(java.rmi.server.RemoteRef ref) {
48         super(ref);
49     }
50 
51     // methods from remote interfaces
52 
53     // implementation of echoNot(byte[])
echoNot(byte[] $param_arrayOf_byte_1)54     public byte[] echoNot(byte[] $param_arrayOf_byte_1)
55         throws java.rmi.RemoteException
56     {
57         try {
58             Object $result = ref.invoke(this, $method_echoNot_0, new java.lang.Object[] {$param_arrayOf_byte_1}, -4295721514897591756L);
59             return ((byte[]) $result);
60         } catch (java.lang.RuntimeException e) {
61             throw e;
62         } catch (java.rmi.RemoteException e) {
63             throw e;
64         } catch (java.lang.Exception e) {
65             throw new java.rmi.UnexpectedException("undeclared checked exception", e);
66         }
67     }
68 
69     // implementation of shutdown()
shutdown()70     public void shutdown()
71         throws java.lang.Exception
72     {
73         ref.invoke(this, $method_shutdown_1, null, -7207851917985848402L);
74     }
75 }
76