Top Fields Constructors Methods
com.mchange.io.impl

public Class StartsWithFilenameFilter

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

Field Summary

Modifier and TypeField and Description
pack-priv int
public static final int
pack-priv String[]
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
public
StartsWithFilenameFilter(String[] beginnings, int accept_dirs)

public
StartsWithFilenameFilter(String beginning, int accept_dirs)

Method Summary

Modifier and TypeMethod and Description
public boolean
accept(File
the directory in which the file was found.
dir
,
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

accept_dirsback to summary
pack-priv int accept_dirs
ALWAYSback to summary
public static final int ALWAYS
beginningsback to summary
pack-priv String[] beginnings
MATCHback to summary
public static final int MATCH
NEVERback to summary
public static final int NEVER

Constructor Detail

StartsWithFilenameFilterback to summary
public StartsWithFilenameFilter(String[] beginnings, int accept_dirs)
StartsWithFilenameFilterback to summary
public StartsWithFilenameFilter(String beginning, int accept_dirs)

Method Detail

acceptback to summary
public boolean accept(File dir, 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
dir: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.