|
FTP-Server API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--server.LogFileReader
An object, that are capeable of reading a logfile from an user. The Object can ONLY read a logfile from one user.
Constructor Summary | |
LogFileReader(File file,
String login)
This constructor is made primarily to read the ban-patterns.conf file. |
|
LogFileReader(String login)
Set Constructor that makes a LogFileReader, which is capeable of reading a logfile from a user with the passed login |
Method Summary | |
boolean |
contains(LogFileSession ses)
Checks wether this LogFileReader contains the passed LogFileSession. |
boolean |
deleteSessions(LogFileSession[] logFileSessions)
Deletes LogFileSessions from a user. |
String |
getLogin()
The login, som that the object were instantiated with. |
LogFileSession |
getSession(int i)
Gets a session with the passed number. |
int[] |
getSessionNumbers()
Reads the logfile, and findes numbers of the sessions contained in the file. |
static void |
setLogFileUpdate(Object arg,
File file)
Notifies all obervers on the file (LogFile), that change has been made to the logFile. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogFileReader(String login)
login
- loginname.public LogFileReader(File file, String login)
file
- file to read.login
- the loginname, that this logfile represents.Method Detail |
public boolean contains(LogFileSession ses)
ses
- Session to find
public String getLogin()
public LogFileSession getSession(int i)
i
- the sessionnumber that should be found.
public boolean deleteSessions(LogFileSession[] logFileSessions)
logFileSessions
- The sessions that should be deleted
public static void setLogFileUpdate(Object arg, File file)
arg
- The LogFileSession that is added, or null if a LogFileSession has been deletedfile
- the file that has been updatedpublic int[] getSessionNumbers()
|
FTP-Server API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |