- public class Users
- extends kllist
Represents a list of users. Alphabetically ordered by user ID.
Warning:
vqServer will not operate correctly if you add
anything other than instances of User to an instance of Users.
Use add(User) to add a user to the list.
- See Also:
- User
Users()
- Creates an empty list.
add(User)
- Adds the specified user to the list.
getByID(String)
- Returns the (first) user with the specified ID.
read(vqis)
- Reads User specifications from the specified input stream and adds them to the list.
save(vqos)
- Writes the list to the specified output stream in vqServer .cfg file format.
Users
public Users()
Creates an empty list.
read
public void read(vqis is) throws java.io.IOException
Reads User specifications from the specified input stream and adds them to the list.
- Overrides:
- read in class kllist
getByID
public User getByID(java.lang.String theID)
Returns the (first) user with the specified ID.
add
public void add(User theUser)
Adds the specified user to the list.
The position of the user in the list depends on
the user's ID (not the user's key).
save
public void save(vqos os) throws java.io.IOException
Writes the list to the specified output stream in vqServer .cfg file format.
Calls the save(vqos) method of each user in the list.
- Overrides:
- save in class kllist