public class ClientFilenameFilter extends Object implements ClientFilter
| Constructor and Description |
|---|
ClientFilenameFilter(String patternString)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<ClientListEntry> |
filter(List<ClientListEntry> entries)
Method to filter out unmatched
ClientListEntry objects
from an List. |
List<String> |
filter(String[] entries)
Utility method for filtering local directories as returned by dir.list()
|
boolean |
match(ClientListEntry entry)
Method to match
ClientListEntry objects based on
whether they the regular expression provided when the object is
instantiated. |
boolean |
match(String entry)
Return true if the entry matches the pattern
|
public ClientFilenameFilter(String patternString)
patternString - The filename pattern to match. This could be any
regular expression. Some examples are:
public boolean match(ClientListEntry entry)
ClientListEntry objects based on
whether they the regular expression provided when the object is
instantiated.match in interface ClientFilterentry - The ClientListEntry to match.true if ClientListEntry's filename
matches the pattern, false otherwise.public boolean match(String entry)
entry - public List<ClientListEntry> filter(List<ClientListEntry> entries)
ClientListEntry objects
from an List.filter in interface ClientFilterentries - The List of ClientListEntries
to filter.AList of all ClientListEntries
matching this filter's criteriaCopyright © 2007-2017 Ikasan. All Rights Reserved.