// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   messageServer_Skel.java

package boggle.server;

import java.io.*;
import java.rmi.*;
import java.rmi.server.*;

// Referenced classes of package boggle.server:
//            messageServer

public final class messageServer_Skel
    implements Skeleton
{

    public Operation[] getOperations()
    {
        return operations;
    }

    public void dispatch(Remote remote, RemoteCall remotecall, int i, long l)
        throws RemoteException, Exception
    {
        if(l != 0x266ce196d20fe6c6L)
            throw new SkeletonMismatchException("Hash mismatch");
        messageServer messageserver = (messageServer)remote;
        switch(i)
        {
        case 0: // '\0'
            int j;
            int j1;
            try
            {
                ObjectInput objectinput2 = remotecall.getInputStream();
                j = objectinput2.readInt();
                j1 = objectinput2.readInt();
            }
            catch(IOException ioexception6)
            {
                throw new UnmarshalException("Error unmarshaling arguments", ioexception6);
            }
            finally
            {
                remotecall.releaseInputStream();
            }
            messageserver.declareLanguage(j, j1);
            try
            {
                remotecall.getResultStream(true);
                return;
            }
            catch(IOException ioexception1)
            {
                throw new MarshalException("Error marshaling return", ioexception1);
            }

        case 1: // '\001'
            int k;
            try
            {
                ObjectInput objectinput = remotecall.getInputStream();
                k = objectinput.readInt();
            }
            catch(IOException ioexception3)
            {
                throw new UnmarshalException("Error unmarshaling arguments", ioexception3);
            }
            finally
            {
                remotecall.releaseInputStream();
            }
            String s1 = messageserver.get(k);
            try
            {
                ObjectOutput objectoutput = remotecall.getResultStream(true);
                objectoutput.writeObject(s1);
                return;
            }
            catch(IOException ioexception2)
            {
                throw new MarshalException("Error marshaling return", ioexception2);
            }

        case 2: // '\002'
            int i1;
            try
            {
                ObjectInput objectinput1 = remotecall.getInputStream();
                i1 = objectinput1.readInt();
            }
            catch(IOException ioexception4)
            {
                throw new UnmarshalException("Error unmarshaling arguments", ioexception4);
            }
            finally
            {
                remotecall.releaseInputStream();
            }
            messageserver.quit(i1);
            try
            {
                remotecall.getResultStream(true);
                return;
            }
            catch(IOException ioexception)
            {
                throw new MarshalException("Error marshaling return", ioexception);
            }

        case 3: // '\003'
            String s;
            int k1;
            try
            {
                ObjectInput objectinput3 = remotecall.getInputStream();
                s = (String)objectinput3.readObject();
                k1 = objectinput3.readInt();
            }
            catch(IOException ioexception7)
            {
                throw new UnmarshalException("Error unmarshaling arguments", ioexception7);
            }
            finally
            {
                remotecall.releaseInputStream();
            }
            String s2 = messageserver.send(s, k1);
            try
            {
                ObjectOutput objectoutput1 = remotecall.getResultStream(true);
                objectoutput1.writeObject(s2);
                return;
            }
            catch(IOException ioexception5)
            {
                throw new MarshalException("Error marshaling return", ioexception5);
            }
        }
        throw new RemoteException("Method number out of range");
    }

    public messageServer_Skel()
    {
    }

    private static Operation operations[] = {
        new Operation("void declareLanguage(int, int)"), new Operation("java.lang.String get(int)"), new Operation("void quit(int)"), new Operation("java.lang.String send(java.lang.String, int)")
    };
    private static final long interfaceHash = 0x266ce196d20fe6c6L;

}

