Class como.sys.User
All Packages Class Hierarchy This Package Previous Next Index
Class como.sys.User
java.lang.Object
|
+----java.util.Dictionary
|
+----java.util.Hashtable
|
+----como.sys.User
- public class User
- extends Hashtable
- implements Saveable
This class stores information about users. You can put anything in it;
As keys, either use sufficiently large Integers or any other class; the safest
way is to use instances of one of your own classes as keys.
A number of standard keys are declared.
-
ADDRESS
-
-
COLOR
-
-
COMMENT
-
-
COMOUSER
-
-
EMAIL
-
-
FACE
-
-
ID
-
-
LOCATION
-
-
NAME
-
-
NICK
-
-
NOTES
-
-
PRIMHOST
-
-
SCORE
-
-
SOCKET
-
-
User()
- Contructor for User.
-
User(int, String)
- Contructor for User.
-
getID()
- Return the user's ID.
-
getName()
- Return the user's name.
-
load(ObjectInputStream)
- Load this Object from the ObjectInputStream s.
-
save(ObjectOutputStream)
- Saves this Object to the ObjectOutputStream s.
ID
public static Integer ID
NAME
public static Integer NAME
FACE
public static Integer FACE
ADDRESS
public static Integer ADDRESS
EMAIL
public static Integer EMAIL
NOTES
public static Integer NOTES
PRIMHOST
public static Integer PRIMHOST
SOCKET
public static Integer SOCKET
NICK
public static Integer NICK
COLOR
public static Integer COLOR
COMOUSER
public static Integer COMOUSER
COMMENT
public static Integer COMMENT
LOCATION
public static Integer LOCATION
SCORE
public static Integer SCORE
User
public User()
- Contructor for User.
User
public User(int id,
String name)
- Contructor for User.
- Parameters:
- id - the user's ID.
- name - the user's name.
getID
public int getID()
- Return the user's ID.
- Returns:
- ID
getName
public String getName()
- Return the user's name.
- Returns:
- the name.
save
public void save(ObjectOutputStream s) throws IOException
- Saves this Object to the ObjectOutputStream s.
- Parameters:
- s - the ObjectOutputStream.
load
public void load(ObjectInputStream s) throws IOException
- Load this Object from the ObjectInputStream s.
- Parameters:
- s - the ObjectOutputStream.
All Packages Class Hierarchy This Package Previous Next Index