// Skeleton class generated by rmic, do not edit.
// Contents subject to change without notice.

public final class BidClientImpl_Skel
    implements java.rmi.server.Skeleton
{
    private static final java.rmi.server.Operation[] operations = {
	new java.rmi.server.Operation("void friend(BidClient)"),
	new java.rmi.server.Operation("void purchase(BidClient, java.lang.String, int)"),
	new java.rmi.server.Operation("void sale(BidClient, java.lang.String, int)"),
	new java.rmi.server.Operation("void updateBidList(java.util.Vector)"),
	new java.rmi.server.Operation("java.lang.String whoAreYou()")
    };
    
    private static final long interfaceHash = 6029370410593701439L;
    
    public java.rmi.server.Operation[] getOperations() {
	return (java.rmi.server.Operation[]) operations.clone();
    }
    
    public void dispatch(java.rmi.Remote obj, java.rmi.server.RemoteCall call, int opnum, long hash)
	throws java.lang.Exception
    {
	if (opnum < 0) {
	    if (hash == -2613345738014275759L) {
		opnum = 0;
	    } else if (hash == 4575250383833983034L) {
		opnum = 1;
	    } else if (hash == 7087581732273167581L) {
		opnum = 2;
	    } else if (hash == -6506765319098756395L) {
		opnum = 3;
	    } else if (hash == -6840866399157665294L) {
		opnum = 4;
	    } else {
		throw new java.rmi.UnmarshalException("invalid method hash");
	    }
	} else {
	    if (hash != interfaceHash)
		throw new java.rmi.server.SkeletonMismatchException("interface hash mismatch");
	}
	
	BidClientImpl server = (BidClientImpl) obj;
	switch (opnum) {
	case 0: // friend(BidClient)
	{
	    BidClient $param_BidClient_1;
	    try {
		java.io.ObjectInput in = call.getInputStream();
		$param_BidClient_1 = (BidClient) in.readObject();
	    } catch (java.io.IOException e) {
		throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
	    } catch (java.lang.ClassNotFoundException e) {
		throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
	    } finally {
		call.releaseInputStream();
	    }
	    server.friend($param_BidClient_1);
	    try {
		call.getResultStream(true);
	    } catch (java.io.IOException e) {
		throw new java.rmi.MarshalException("error marshalling return", e);
	    }
	    break;
	}
	    
	case 1: // purchase(BidClient, String, int)
	{
	    BidClient $param_BidClient_1;
	    java.lang.String $param_String_2;
	    int $param_int_3;
	    try {
		java.io.ObjectInput in = call.getInputStream();
		$param_BidClient_1 = (BidClient) in.readObject();
		$param_String_2 = (java.lang.String) in.readObject();
		$param_int_3 = in.readInt();
	    } catch (java.io.IOException e) {
		throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
	    } catch (java.lang.ClassNotFoundException e) {
		throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
	    } finally {
		call.releaseInputStream();
	    }
	    server.purchase($param_BidClient_1, $param_String_2, $param_int_3);
	    try {
		call.getResultStream(true);
	    } catch (java.io.IOException e) {
		throw new java.rmi.MarshalException("error marshalling return", e);
	    }
	    break;
	}
	    
	case 2: // sale(BidClient, String, int)
	{
	    BidClient $param_BidClient_1;
	    java.lang.String $param_String_2;
	    int $param_int_3;
	    try {
		java.io.ObjectInput in = call.getInputStream();
		$param_BidClient_1 = (BidClient) in.readObject();
		$param_String_2 = (java.lang.String) in.readObject();
		$param_int_3 = in.readInt();
	    } catch (java.io.IOException e) {
		throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
	    } catch (java.lang.ClassNotFoundException e) {
		throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
	    } finally {
		call.releaseInputStream();
	    }
	    server.sale($param_BidClient_1, $param_String_2, $param_int_3);
	    try {
		call.getResultStream(true);
	    } catch (java.io.IOException e) {
		throw new java.rmi.MarshalException("error marshalling return", e);
	    }
	    break;
	}
	    
	case 3: // updateBidList(Vector)
	{
	    java.util.Vector $param_Vector_1;
	    try {
		java.io.ObjectInput in = call.getInputStream();
		$param_Vector_1 = (java.util.Vector) in.readObject();
	    } catch (java.io.IOException e) {
		throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
	    } catch (java.lang.ClassNotFoundException e) {
		throw new java.rmi.UnmarshalException("error unmarshalling arguments", e);
	    } finally {
		call.releaseInputStream();
	    }
	    server.updateBidList($param_Vector_1);
	    try {
		call.getResultStream(true);
	    } catch (java.io.IOException e) {
		throw new java.rmi.MarshalException("error marshalling return", e);
	    }
	    break;
	}
	    
	case 4: // whoAreYou()
	{
	    call.releaseInputStream();
	    java.lang.String $result = server.whoAreYou();
	    try {
		java.io.ObjectOutput out = call.getResultStream(true);
		out.writeObject($result);
	    } catch (java.io.IOException e) {
		throw new java.rmi.MarshalException("error marshalling return", e);
	    }
	    break;
	}
	    
	default:
	    throw new java.rmi.UnmarshalException("invalid method number");
	}
    }
}
