public class ProfileIO
extends java.lang.Object
Constructor and Description |
---|
ProfileIO() |
Modifier and Type | Method and Description |
---|---|
static void |
createUserProfileFile(java.lang.String newFileName,
java.lang.String user)
Creates a file containing the user profile rule.
|
static java.lang.String |
loadUserProfile(java.lang.String userID)
Load the user profile for a given user.
|
static java.lang.String |
readPlainProfileFromFile(java.lang.String userID)
Read plain profile from file.
|
public static java.lang.String readPlainProfileFromFile(java.lang.String userID) throws java.io.FileNotFoundException
userID
- the user idjava.io.FileNotFoundException
- the file not found exceptionpublic static java.lang.String loadUserProfile(java.lang.String userID)
userID
- the user idpublic static void createUserProfileFile(java.lang.String newFileName, java.lang.String user)
newFileName
- - the name of the file to be created/ovewritten.user
- the user