// 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_Stub.java

package boggle.server;

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

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

public final class messageServer_Stub extends RemoteStub
    implements messageServerInterface, Remote
{

    public messageServer_Stub()
    {
    }

    public messageServer_Stub(RemoteRef remoteref)
    {
        super(remoteref);
    }

    public void declareLanguage(int i, int j)
        throws RemoteException
    {
        int k = 0;
        RemoteRef remoteref = ref;
        RemoteCall remotecall = remoteref.newCall(this, operations, k, 0x266ce196d20fe6c6L);
        try
        {
            ObjectOutput objectoutput = remotecall.getOutputStream();
            objectoutput.writeInt(i);
            objectoutput.writeInt(j);
        }
        catch(IOException ioexception)
        {
            throw new MarshalException("Error marshaling arguments", ioexception);
        }
        try
        {
            remoteref.invoke(remotecall);
        }
        catch(RemoteException remoteexception)
        {
            throw remoteexception;
        }
        catch(Exception exception)
        {
            throw new UnexpectedException("Unexpected exception", exception);
        }
        remoteref.done(remotecall);
    }

    public String get(int i)
        throws RemoteException
    {
        int j = 1;
        RemoteRef remoteref = ref;
        RemoteCall remotecall = remoteref.newCall(this, operations, j, 0x266ce196d20fe6c6L);
        try
        {
            ObjectOutput objectoutput = remotecall.getOutputStream();
            objectoutput.writeInt(i);
        }
        catch(IOException ioexception)
        {
            throw new MarshalException("Error marshaling arguments", ioexception);
        }
        try
        {
            remoteref.invoke(remotecall);
        }
        catch(RemoteException remoteexception)
        {
            throw remoteexception;
        }
        catch(Exception exception)
        {
            throw new UnexpectedException("Unexpected exception", exception);
        }
        String s;
        try
        {
            ObjectInput objectinput = remotecall.getInputStream();
            s = (String)objectinput.readObject();
        }
        catch(IOException ioexception1)
        {
            throw new UnmarshalException("Error unmarshaling return", ioexception1);
        }
        catch(ClassNotFoundException classnotfoundexception)
        {
            throw new UnmarshalException("Return value class not found", classnotfoundexception);
        }
        catch(Exception exception2)
        {
            throw new UnexpectedException("Unexpected exception", exception2);
        }
        finally
        {
            remoteref.done(remotecall);
        }
        return s;
    }

    public void quit(int i)
        throws RemoteException
    {
        byte byte0 = 2;
        RemoteRef remoteref = ref;
        RemoteCall remotecall = remoteref.newCall(this, operations, byte0, 0x266ce196d20fe6c6L);
        try
        {
            ObjectOutput objectoutput = remotecall.getOutputStream();
            objectoutput.writeInt(i);
        }
        catch(IOException ioexception)
        {
            throw new MarshalException("Error marshaling arguments", ioexception);
        }
        try
        {
            remoteref.invoke(remotecall);
        }
        catch(RemoteException remoteexception)
        {
            throw remoteexception;
        }
        catch(Exception exception)
        {
            throw new UnexpectedException("Unexpected exception", exception);
        }
        remoteref.done(remotecall);
    }

    public String send(String s, int i)
        throws RemoteException
    {
        byte byte0 = 3;
        RemoteRef remoteref = ref;
        RemoteCall remotecall = remoteref.newCall(this, operations, byte0, 0x266ce196d20fe6c6L);
        try
        {
            ObjectOutput objectoutput = remotecall.getOutputStream();
            objectoutput.writeObject(s);
            objectoutput.writeInt(i);
        }
        catch(IOException ioexception)
        {
            throw new MarshalException("Error marshaling arguments", ioexception);
        }
        try
        {
            remoteref.invoke(remotecall);
        }
        catch(RemoteException remoteexception)
        {
            throw remoteexception;
        }
        catch(Exception exception)
        {
            throw new UnexpectedException("Unexpected exception", exception);
        }
        String s1;
        try
        {
            ObjectInput objectinput = remotecall.getInputStream();
            s1 = (String)objectinput.readObject();
        }
        catch(IOException ioexception1)
        {
            throw new UnmarshalException("Error unmarshaling return", ioexception1);
        }
        catch(ClassNotFoundException classnotfoundexception)
        {
            throw new UnmarshalException("Return value class not found", classnotfoundexception);
        }
        catch(Exception exception2)
        {
            throw new UnexpectedException("Unexpected exception", exception2);
        }
        finally
        {
            remoteref.done(remotecall);
        }
        return s1;
    }

    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;

}
