public class WildcardMatchOnPath extends Object implements MFileFilter
Modifier and Type | Field and Description |
---|---|
protected Pattern |
pattern |
protected String |
wildcardString |
Constructor and Description |
---|
WildcardMatchOnPath(Pattern pattern) |
WildcardMatchOnPath(String wildcardString) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MFile file)
Tests if a specified MFile should be included in a file collection.
|
String |
toString() |
public WildcardMatchOnPath(String wildcardString)
public WildcardMatchOnPath(Pattern pattern)
public boolean accept(MFile file)
MFileFilter
accept
in interface MFileFilter
file
- the MFiletrue
if and only if the mfile should be
included in the file collection; false
otherwise.Copyright © 1999–2018 UCAR/Unidata. All rights reserved.