public class WindowsLikeFilenameFilter extends WindowsLikeFilenameFilter
Constructor and Description |
---|
WindowsLikeFilenameFilter(String filter)
Creates the instance of the file name filter that is case sensitive.
|
WindowsLikeFilenameFilter(String filter,
boolean isCaseSensitive)
Creates the instance of the file name filter that is case sensitive.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isMatching(String name,
String filter)
Checks if a name matches a filter string like under Windows, with '?'
being any character, '*' being any characters and '^' the escape character
(the meaning of '?' and '*' becomes the actual character, and two escape
characters for a single).
|
static boolean |
isMatching(String name,
String filter,
boolean isCaseSensitive)
Checks if a name matches a filter string like under Windows, with '?'
being any character, '*' being any characters and '^' the escape character
(the meaning of '?' and '*' becomes the actual character, and two escape
characters for a single).
|
accept, getCaseSensitivity, getFilter, setCaseSensitivity, setFilter
public WindowsLikeFilenameFilter(String filter)
filter
parameter to null will include all files.public WindowsLikeFilenameFilter(String filter, boolean isCaseSensitive)
filter
parameter to null will include all files.public static boolean isMatching(String name, String filter)
public static boolean isMatching(String name, String filter, boolean isCaseSensitive)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.