|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.util.MaximumFileFilter
public class MaximumFileFilter
File filter implementation to retrieve at most predefined number of files which are older than specified data
| Field Summary | |
|---|---|
protected int |
m_currentFileCount
Current number of files in list |
protected java.util.Date |
m_dtOlderThan
Last modification time of file have to be before this date, if it is null, modification date is not checked |
protected int |
m_iMaximum
Maximum number of files in output list |
| Constructor Summary | |
|---|---|
MaximumFileFilter(int iMax,
java.util.Date dtOlderThen)
Constructor with maximum count of file in the output list. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int m_currentFileCount
protected int m_iMaximum
protected java.util.Date m_dtOlderThan
| Constructor Detail |
|---|
public MaximumFileFilter(int iMax,
java.util.Date dtOlderThen)
iMax - - maximum number of files in output list. If it is 0 length ofdtOlderThen - - file last modification time heve to by before this
date, if it is null modification time is not checked
output list is unlimited.| Method Detail |
|---|
public boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||