public class SuffixFilter extends Object implements FileFilter
java.lang.String.endsWith(suffix) on the file name.| Constructor and Description |
|---|
SuffixFilter(String suffix) |
SuffixFilter(String suffix,
boolean includeDirectories) |
SuffixFilter(String suffix,
Boolean includeDirectories) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File path)
Tests whether or not the specified abstract pathname should be included in
a pathname list.
|
public SuffixFilter(String suffix)
public SuffixFilter(String suffix, boolean includeDirectories)
public boolean accept(File path)
accept in interface FileFilterpath - The abstract pathname to be testedtrue if and only if path should be
included.Copyright © 2016 The American National Corpus. All rights reserved.