KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > datashare > client > ClientDataReceiverInterface


1 /* ----- BEGIN LICENSE BLOCK -----
2  * Version: MPL 1.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * The Original Code was the Rendezvous client.
15  * The Code is now DataShare.
16  *
17  * The Initial Developer of the Original Code is
18  * Ball Aerospace & Technologies Corp, Fairborn, Ohio
19  * Portions created by the Initial Developer are Copyright (C) 2001
20  * the Initial Developer. All Rights Reserved.
21  *
22  * Contributor(s): Charles Wood <cwood@ball.com>
23  *
24  * ----- END LICENSE BLOCK ----- */

25 /* RCS $Id: ClientDataReceiverInterface.java,v 1.1 2002/01/03 03:21:36 lizellaman Exp $
26  * $Log: ClientDataReceiverInterface.java,v $
27  * Revision 1.1 2002/01/03 03:21:36 lizellaman
28  * existing file, moved to client package
29  *
30  * Revision 1.1.1.1 2001/10/23 13:43:47 lizellaman
31  * initial sourceforge release
32  *
33  */

34
35 package org.datashare.client;
36
37 import org.datashare.objects.DataShareObject;
38
39 public interface ClientDataReceiverInterface
40    {
41    /**
42     * this method will be called when data is received
43     */

44    public void dataReceived(DataShareObject dso);
45
46    /**
47     * this method is called when the data connection has been lost,
48     * this will be used to notify anybody that cares...
49     */

50    public void
51    connectionLost(DataShareConnection dsc);
52    }
53
Popular Tags