Top Fields Constructors Methods
org.apache.log.output.io.rotate

pack-priv Class BaseFileNameFilter

extends Object
implements FilenameFilter
Class Inheritance
All Implemented Interfaces
java.io.FilenameFilter
Imports
java.io.File, .FilenameFilter

Field Summary

Modifier and TypeField and Description
private String

Constructor Summary

AccessConstructor and Description
pack-priv
BaseFileNameFilter(final String baseFileName)

Method Summary

Modifier and TypeMethod and Description
public boolean
accept(File
the directory in which the file was found.
file
,
String
the name of the file.
name
)

Implements java.io.FilenameFilter.accept.

Tests if a specified file should be included in a file list.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_baseFileNameback to summary
private String m_baseFileName

Constructor Detail

BaseFileNameFilterback to summary
pack-priv BaseFileNameFilter(final String baseFileName)

Method Detail

acceptback to summary
public boolean accept(File file, String name)

Implements java.io.FilenameFilter.accept.

Doc from java.io.FilenameFilter.accept.

Tests if a specified file should be included in a file list.

Parameters
file:File

the directory in which the file was found.

name:String

the name of the file.

Returns:boolean

true if and only if the name should be included in the file list; false otherwise.