public class GFileFilter extends FileFilter
Constructor and Description |
---|
GFileFilter(String prefix,
String suffix,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File file)
Method returning "true" if the file is a directory or a file of the right type.
|
String |
getDescription()
Method returning the description of the type of the file.
|
String |
getPrefix()
Method returning the prefix of the file name.
|
String |
getSuffix()
Method returning the suffix of the file name.
|
boolean |
isPrefix()
Method returning if the prefix of the file name exists and with a length > 0.
|
boolean |
isSuffix()
Method returning if the suffix of the file name exists and with a length > 0.
|
public boolean accept(File file)
accept
in class FileFilter
file
- to be tested.public String getDescription()
getDescription
in class FileFilter
public String getPrefix()
public String getSuffix()
public boolean isPrefix()
public boolean isSuffix()
Copyright © 2023. All rights reserved.