0N/A/*
2362N/A * Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A// Skeleton class generated by rmic, do not edit.
0N/A// Contents subject to change without notice.
0N/A
0N/Apublic final class UseCustomRef_Skel
0N/A implements java.rmi.server.Skeleton
0N/A{
0N/A private static final java.rmi.server.Operation[] operations = {
0N/A new java.rmi.server.Operation("void ping()"),
0N/A new java.rmi.server.Operation("void receiveAndPing(Ping)")
0N/A };
0N/A
0N/A private static final long interfaceHash = 8457085322718440165L;
0N/A
0N/A public java.rmi.server.Operation[] getOperations() {
0N/A return (java.rmi.server.Operation[]) operations.clone();
0N/A }
0N/A
0N/A public void dispatch(java.rmi.Remote obj, java.rmi.server.RemoteCall call, int opnum, long hash)
0N/A throws java.lang.Exception
0N/A {
0N/A if (opnum < 0) {
0N/A if (hash == 5866401369815527589L) {
0N/A opnum = 0;
0N/A } else if (hash == -5964458762870933304L) {
0N/A opnum = 1;
0N/A } else {
0N/A throw new java.rmi.UnmarshalException("invalid method hash");
0N/A }
0N/A } else {
0N/A if (hash != interfaceHash)
0N/A throw new java.rmi.server.SkeletonMismatchException("interface hash mismatch");
0N/A }
0N/A
0N/A UseCustomRef server = (UseCustomRef) obj;
0N/A switch (opnum) {
0N/A case 0: // ping()
0N/A {
0N/A call.releaseInputStream();
0N/A server.ping();
0N/A try {
0N/A call.getResultStream(true);
0N/A } catch (java.io.IOException e) {
0N/A throw new java.rmi.MarshalException("error marshalling return", e);
0N/A }
0N/A break;
0N/A }
0N/A
0N/A case 1: // receiveAndPing(Ping)
0N/A {
0N/A Ping $param_Ping_1;
0N/A try {
0N/A java.io.ObjectInput in = call.getInputStream();
0N/A $param_Ping_1 = (Ping) in.readObject();
0N/A } catch (java.io.IOException e) {
0N/A throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
0N/A } catch (java.lang.ClassNotFoundException e) {
0N/A throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
0N/A } finally {
0N/A call.releaseInputStream();
0N/A }
0N/A server.receiveAndPing($param_Ping_1);
0N/A try {
0N/A call.getResultStream(true);
0N/A } catch (java.io.IOException e) {
0N/A throw new java.rmi.MarshalException("error marshalling return", e);
0N/A }
0N/A break;
0N/A }
0N/A
0N/A default:
0N/A throw new java.rmi.UnmarshalException("invalid method number");
0N/A }
0N/A }
0N/A}