unannoy.util
Class FileFilters

java.lang.Object
  |
  +--unannoy.util.FileFilters

public class FileFilters
extends java.lang.Object


Constructor Summary
FileFilters()
           
 
Method Summary
static java.io.FilenameFilter endsWith(java.lang.String suffix)
          Returns a FilenameFilter for names that end with a certain string.
static java.io.FilenameFilter equals(java.lang.String str)
          Returns a FilenameFilter for names that match a certain string.
static java.io.FileFilter isDirectory()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileFilters

public FileFilters()
Method Detail

endsWith

public static java.io.FilenameFilter endsWith(java.lang.String suffix)
Returns a FilenameFilter for names that end with a certain string. Note: you have to supply the extension yourself, for example, ".xml" instead of "xml"; if you supply the latter, this filter would accept "fooxml" as well as "foo.xml".

Returns:
A FilenameFilter that accepts files with a certain suffix.

equals

public static java.io.FilenameFilter equals(java.lang.String str)
Returns a FilenameFilter for names that match a certain string.

Returns:
A FilenameFilter that accepts files with names that match a certain string.

isDirectory

public static java.io.FileFilter isDirectory()