Class ClientFilenameFilter
- java.lang.Object
-
- org.ikasan.connector.basefiletransfer.net.ClientFilenameFilter
-
- All Implemented Interfaces:
ClientFilter
public class ClientFilenameFilter extends java.lang.Object implements ClientFilter
- Author:
- Ikasan Development Team
-
-
Constructor Summary
Constructors Constructor Description ClientFilenameFilter(java.lang.String patternString)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>filter(java.lang.String[] entries)Utility method for filtering local directories as returned by dir.list()java.util.List<ClientListEntry>filter(java.util.List<ClientListEntry> entries)Method to filter out unmatchedClientListEntryobjects from anList.booleanmatch(java.lang.String entry)Return true if the entry matches the patternbooleanmatch(ClientListEntry entry)Method to matchClientListEntryobjects based on whether they the regular expression provided when the object is instantiated.
-
-
-
Method Detail
-
match
public boolean match(ClientListEntry entry)
Method to matchClientListEntryobjects based on whether they the regular expression provided when the object is instantiated.- Specified by:
matchin interfaceClientFilter- Parameters:
entry- TheClientListEntryto match.- Returns:
trueifClientListEntry's filename matches the pattern,falseotherwise.
-
match
public boolean match(java.lang.String entry)
Return true if the entry matches the pattern- Parameters:
entry-- Returns:
- true if the entry matches the pattern else false
-
filter
public java.util.List<ClientListEntry> filter(java.util.List<ClientListEntry> entries)
Method to filter out unmatchedClientListEntryobjects from anList.- Specified by:
filterin interfaceClientFilter- Parameters:
entries- TheListofClientListEntriesto filter.- Returns:
- A
AListof allClientListEntriesmatching this filter's criteria
-
filter
public java.util.List<java.lang.String> filter(java.lang.String[] entries)
Utility method for filtering local directories as returned by dir.list()- Parameters:
entries-- Returns:
- List of filtered directories
-
-