KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > quickserver > net > server > DataType


1 /*
2  * This file is part of the QuickServer library
3  * Copyright (C) 2003-2005 QuickServer.org
4  *
5  * Use, modification, copying and distribution of this software is subject to
6  * the terms and conditions of the GNU Lesser General Public License.
7  * You should have received a copy of the GNU LGP License along with this
8  * library; if not, you can download a copy from <http://www.quickserver.org/>.
9  *
10  * For questions, suggestions, bug-reports, enhancement-requests etc.
11  * visit http://www.quickserver.org
12  *
13  */

14
15 package org.quickserver.net.server;
16 /**
17  * This class defines the type(direction) of data exchanging between
18  * QuickServer and client socket.
19  * @since 1.2
20  */

21 public class DataType {
22     private String JavaDoc type;
23     
24     private DataType(String JavaDoc type) {
25         this.type = type;
26     }
27     
28     public String JavaDoc toString() {
29         return type;
30     }
31
32     /**
33      * Incoming data type for {@link ClientHandler}
34      */

35     public static final DataType IN = new DataType("Incoming");
36     /**
37      * Outgoing data type for {@link ClientHandler}
38      */

39     public static final DataType OUT = new DataType("Outgoing");
40 }
41
Popular Tags