|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserFile
Describe interface UserFile here.
| Method Summary | |
|---|---|
boolean |
canRead()
Returns true if the file is readable. |
boolean |
canWrite()
Returns true if the file is writable. |
boolean |
exists()
Returns true if the file exists. |
User |
read(String password)
Reads the user from the file if it exists and if the password is correct. |
void |
save(User user)
Save the user to the file. |
| Method Detail |
|---|
boolean exists()
boolean valueboolean canRead()
boolean valueboolean canWrite()
boolean value
void save(User user)
throws FileNotFoundException,
IOException
user - an User value
FileNotFoundException - if an error occurs
IOException - if an error occurs
User read(String password)
throws SAXException,
FileNotFoundException,
IOException
password - a String value
User value
SAXException - if an error occurs
FileNotFoundException - if an error occurs
IOException - if an error occurs
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||