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.

Variable Index

 o ADDRESS
 o COLOR
 o COMMENT
 o COMOUSER
 o EMAIL
 o FACE
 o ID
 o LOCATION
 o NAME
 o NICK
 o NOTES
 o PRIMHOST
 o SCORE
 o SOCKET

Constructor Index

 o User()
Contructor for User.
 o User(int, String)
Contructor for User.

Method Index

 o getID()
Return the user's ID.
 o getName()
Return the user's name.
 o load(ObjectInputStream)
Load this Object from the ObjectInputStream s.
 o save(ObjectOutputStream)
Saves this Object to the ObjectOutputStream s.

Variables

 o ID
  public static Integer ID
 o NAME
  public static Integer NAME
 o FACE
  public static Integer FACE
 o ADDRESS
  public static Integer ADDRESS
 o EMAIL
  public static Integer EMAIL
 o NOTES
  public static Integer NOTES
 o PRIMHOST
  public static Integer PRIMHOST
 o SOCKET
  public static Integer SOCKET
 o NICK
  public static Integer NICK
 o COLOR
  public static Integer COLOR
 o COMOUSER
  public static Integer COMOUSER
 o COMMENT
  public static Integer COMMENT
 o LOCATION
  public static Integer LOCATION
 o SCORE
  public static Integer SCORE

Constructors

 o User
  public User()
Contructor for User.
 o User
  public User(int id,
              String name)
Contructor for User.
Parameters:
id - the user's ID.
name - the user's name.

Methods

 o getID
  public int getID()
Return the user's ID.
Returns:
ID
 o getName
  public String getName()
Return the user's name.
Returns:
the name.
 o save
  public void save(ObjectOutputStream s) throws IOException
Saves this Object to the ObjectOutputStream s.
Parameters:
s - the ObjectOutputStream.
 o 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