com.eurotech.framework.protocol.pcn
Class LogFileFilter

java.lang.Object
  extended by com.eurotech.framework.protocol.pcn.LogFileFilter
All Implemented Interfaces:
FilenameFilter

public class LogFileFilter
extends Object
implements FilenameFilter


Field Summary
static int AFTER
           
static int ALL
           
static int BEFORE
           
static int SAME_DAY
           
static int YESTERDAY
           
 
Constructor Summary
LogFileFilter(String ext, int filter, int age)
           
 
Method Summary
 boolean accept(File directory, String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL

public static final int ALL
See Also:
Constant Field Values

SAME_DAY

public static final int SAME_DAY
See Also:
Constant Field Values

BEFORE

public static final int BEFORE
See Also:
Constant Field Values

AFTER

public static final int AFTER
See Also:
Constant Field Values

YESTERDAY

public static final int YESTERDAY
See Also:
Constant Field Values
Constructor Detail

LogFileFilter

public LogFileFilter(String ext,
                     int filter,
                     int age)
Parameters:
ext - - file extension
filter - - file filter as
age - - age as int
Method Detail

accept

public boolean accept(File directory,
                      String filename)
Specified by:
accept in interface FilenameFilter


Copyright © 2013. All Rights Reserved.