freeforums
Class UserCollection

java.lang.Object
  |
  +--freeforums.UserCollection
All Implemented Interfaces:
java.io.Serializable

public class UserCollection
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.lang.String filename
           
protected  java.util.Vector users
           
 
Constructor Summary
UserCollection()
           
UserCollection(java.lang.String in_filename)
           
 
Method Summary
 boolean deleteUser(java.lang.String in_username)
           
 java.lang.String getFilename()
           
 int getNumUsers()
           
 User getUser(java.lang.String in_username)
           
 User getUserByIndex(int index)
           
 void newFile()
           
 void open(java.lang.String file_name)
           
 boolean putUser(User user)
           
 void save()
           
 void saveAs(java.lang.String new_filename)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

users

protected java.util.Vector users

filename

protected java.lang.String filename
Constructor Detail

UserCollection

public UserCollection()

UserCollection

public UserCollection(java.lang.String in_filename)
               throws java.io.IOException,
                      java.lang.ClassNotFoundException
Method Detail

open

public void open(java.lang.String file_name)

newFile

public void newFile()
             throws java.io.IOException,
                    java.lang.ClassNotFoundException

getFilename

public java.lang.String getFilename()

getNumUsers

public int getNumUsers()

getUser

public User getUser(java.lang.String in_username)

getUserByIndex

public User getUserByIndex(int index)

putUser

public boolean putUser(User user)

deleteUser

public boolean deleteUser(java.lang.String in_username)

save

public void save()

saveAs

public void saveAs(java.lang.String new_filename)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object