public interface URLFilenameFilter
URLFileSystem#list(URLFilenameFilter)
method.
Unlike URLFilter
used with the URLFileSystem#list(URLFilter)
method, URLs
are not created prior to calling the
accept(URL,String)
method. This can have performance benefits,
because it avoids IO on files that are not accepted by the filter.
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.net.URL url,
java.lang.String name)
Tests if a file name should be included in a file list.
|
boolean accept(java.net.URL url, java.lang.String name)
url
- the URL of the directory in which the file was found.name
- the name of the file.