|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.protocol.pcn.LogFileLister
public class LogFileLister
Defines log file lister.
Constructor Summary | |
---|---|
LogFileLister(File folder)
LogFileLister constructor |
|
LogFileLister(String foldername)
LogFileLister constructor |
Method Summary | |
---|---|
File[] |
listAfterLogFiles(int age)
Lists all log files time-stamped after the current date. |
File[] |
listAllLogFiles()
Lists all log files. |
File[] |
listBeforeLogFiles(int age)
Lists all log files time-stamped before supplied age in days |
File[] |
listSameDayLogFiles()
Lists 'same day' log files |
File[] |
listYesterdayLogFiles()
Lists 'yesterday' log files |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogFileLister(String foldername) throws Exception
foldername
- - folder name as String
Exception
public LogFileLister(File folder)
folder
- - log folder as File
Method Detail |
---|
public File[] listAllLogFiles()
File[]
public File[] listSameDayLogFiles()
File[]
public File[] listYesterdayLogFiles()
File[]
public File[] listBeforeLogFiles(int age)
age
- - number of days before now as int
File[]
public File[] listAfterLogFiles(int age)
age
- - number of days after now as int
File[]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |