Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.net
Interface URLFilenameFilter


public interface URLFilenameFilter

Instances of classes that implement this interface are used to filter filenames when using the 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.

Since:
11.0

Method Summary
 boolean accept(java.net.URL url, java.lang.String name)
          Tests if a file name should be included in a file list.
 

Method Detail

accept

boolean accept(java.net.URL url,
               java.lang.String name)
Tests if a file name should be included in a file list.

Parameters:
url - the URL of the directory in which the file was found.
name - the name of the file.
Returns:
true if the name should be included in the file list, false otherwise.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.