Package kieker.common.util.filesystem
Class FileExtensionFilter
java.lang.Object
kieker.common.util.filesystem.FileExtensionFilter
- All Implemented Interfaces:
java.io.FilenameFilter
public class FileExtensionFilter
extends java.lang.Object
implements java.io.FilenameFilter
File extension filters.
- Since:
- 1.13
- Author:
- Christian Wulf
-
Field Summary
Fields Modifier and Type Field Description static FileExtensionFilter
BIN
A filter ensuring that the name of the file starts with and ends with .static FileExtensionFilter
DAT
static FileExtensionFilter
DEFLATE
static FileExtensionFilter
GZIP
static FileExtensionFilter
MAP
static FileExtensionFilter
XZ
static FileExtensionFilter
ZIP
-
Constructor Summary
Constructors Constructor Description FileExtensionFilter(java.lang.String fileExtension)
create filename filter. -
Method Summary
Modifier and Type Method Description boolean
accept(java.io.File dir, java.lang.String name)
java.lang.String
getExtensionName()
-
Field Details
-
Constructor Details
-
FileExtensionFilter
public FileExtensionFilter(java.lang.String fileExtension)create filename filter.- Parameters:
fileExtension
- extension
-
-
Method Details
-
accept
public boolean accept(java.io.File dir, java.lang.String name)- Specified by:
accept
in interfacejava.io.FilenameFilter
-
getExtensionName
public java.lang.String getExtensionName()
-