| java.lang.Object org.mmbase.util.SPartFileFilter
SPartFileFilter | public class SPartFileFilter implements FilenameFilter(Code) | | Support utility for MMObjectBuilder.getSMartPath
This filter filters files with the specified
number in its name.
author: Wilbert Hengst version: $Id: SPartFileFilter.java,v 1.6 2004/09/30 17:19:49 pierre Exp $ |
Method Summary | |
public boolean | accept(File dir, String name) Checks whether a file has the node number in its file path. |
SPartFileFilter | public SPartFileFilter(String nodeNumber)(Code) | | Creates the file filter.
Parameters: nodeNumber - the number to filter on. |
accept | public boolean accept(File dir, String name)(Code) | | Checks whether a file has the node number in its file path.
This checks on the exact number - so if the number to search on is '100',
If the path contains a number such as '1001' or '1100' it will return false .
Parameters: dir - The directory as a File (unused in this filter) Parameters: name - The file name to check true if the number is in the path, false otherwise. |
|
|