Java Doc for FileFilterUtils.java in  » Library » apache-common-IO » org » apache » commons » io » filefilter » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » apache common IO » org.apache.commons.io.filefilter 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.io.filefilter.FileFilterUtils

FileFilterUtils
public class FileFilterUtils (Code)
Useful utilities for working with file filters. It provides access to all file filter implementations in this package so you don't have to import every class you use.
since:
   Commons IO 1.0
version:
   $Id: FileFilterUtils.java 471628 2006-11-06 04:06:45Z bayard $
author:
   Stephen Colebourne
author:
   Jeremias Maerki
author:
   Masato Tezuka
author:
   Rahul Akolkar



Constructor Summary
public  FileFilterUtils()
     FileFilterUtils is not normally instantiated.

Method Summary
public static  IOFileFilterageFileFilter(long cutoff)
     Returns a filter that returns true if the file was last modified after the specified cutoff time.
public static  IOFileFilterageFileFilter(long cutoff, boolean acceptOlder)
     Returns a filter that filters files based on a cutoff time.
public static  IOFileFilterageFileFilter(Date cutoffDate)
     Returns a filter that returns true if the file was last modified after the specified cutoff date.
public static  IOFileFilterageFileFilter(Date cutoffDate, boolean acceptOlder)
     Returns a filter that filters files based on a cutoff date.
public static  IOFileFilterageFileFilter(File cutoffReference)
     Returns a filter that returns true if the file was last modified after the specified reference file.
public static  IOFileFilterageFileFilter(File cutoffReference, boolean acceptOlder)
     Returns a filter that filters files based on a cutoff reference file.
public static  IOFileFilterandFileFilter(IOFileFilter filter1, IOFileFilter filter2)
     Returns a filter that ANDs the two specified filters.
public static  IOFileFilterasFileFilter(FileFilter filter)
     Returns an IOFileFilter that wraps the FileFilter instance.
public static  IOFileFilterasFileFilter(FilenameFilter filter)
     Returns an IOFileFilter that wraps the FilenameFilter instance.
public static  IOFileFilterdirectoryFileFilter()
     Returns a filter that checks if the file is a directory.
public static  IOFileFilterfalseFileFilter()
     Returns a filter that always returns false.
public static  IOFileFilterfileFileFilter()
     Returns a filter that checks if the file is a file (and not a directory).
public static  IOFileFiltermakeCVSAware(IOFileFilter filter)
     Decorates a filter to make it ignore CVS directories.
public static  IOFileFiltermakeDirectoryOnly(IOFileFilter filter)
     Decorates a filter so that it only applies to directories and not to files.
public static  IOFileFiltermakeFileOnly(IOFileFilter filter)
     Decorates a filter so that it only applies to files and not to directories.
public static  IOFileFiltermakeSVNAware(IOFileFilter filter)
     Decorates a filter to make it ignore SVN directories.
public static  IOFileFilternameFileFilter(String name)
     Returns a filter that returns true if the filename matches the specified text.
public static  IOFileFilternotFileFilter(IOFileFilter filter)
     Returns a filter that NOTs the specified filter.
public static  IOFileFilterorFileFilter(IOFileFilter filter1, IOFileFilter filter2)
     Returns a filter that ORs the two specified filters.
public static  IOFileFilterprefixFileFilter(String prefix)
     Returns a filter that returns true if the filename starts with the specified text.
public static  IOFileFiltersizeFileFilter(long threshold)
     Returns a filter that returns true if the file is bigger than a certain size.
public static  IOFileFiltersizeFileFilter(long threshold, boolean acceptLarger)
     Returns a filter that filters based on file size.
public static  IOFileFiltersizeRangeFileFilter(long minSizeInclusive, long maxSizeInclusive)
     Returns a filter that accepts files whose size is >= minimum size and <= maximum size.
public static  IOFileFiltersuffixFileFilter(String suffix)
     Returns a filter that returns true if the filename ends with the specified text.
public static  IOFileFiltertrueFileFilter()
     Returns a filter that always returns true.


Constructor Detail
FileFilterUtils
public FileFilterUtils()(Code)
FileFilterUtils is not normally instantiated.




Method Detail
ageFileFilter
public static IOFileFilter ageFileFilter(long cutoff)(Code)
Returns a filter that returns true if the file was last modified after the specified cutoff time.
Parameters:
  cutoff - the time threshold an appropriately configured age file filter
since:
   Commons IO 1.2



ageFileFilter
public static IOFileFilter ageFileFilter(long cutoff, boolean acceptOlder)(Code)
Returns a filter that filters files based on a cutoff time.
Parameters:
  cutoff - the time threshold
Parameters:
  acceptOlder - if true, older files get accepted, if false, newer an appropriately configured age file filter
since:
   Commons IO 1.2



ageFileFilter
public static IOFileFilter ageFileFilter(Date cutoffDate)(Code)
Returns a filter that returns true if the file was last modified after the specified cutoff date.
Parameters:
  cutoffDate - the time threshold an appropriately configured age file filter
since:
   Commons IO 1.2



ageFileFilter
public static IOFileFilter ageFileFilter(Date cutoffDate, boolean acceptOlder)(Code)
Returns a filter that filters files based on a cutoff date.
Parameters:
  cutoffDate - the time threshold
Parameters:
  acceptOlder - if true, older files get accepted, if false, newer an appropriately configured age file filter
since:
   Commons IO 1.2



ageFileFilter
public static IOFileFilter ageFileFilter(File cutoffReference)(Code)
Returns a filter that returns true if the file was last modified after the specified reference file.
Parameters:
  cutoffReference - the file whose last modificationtime is usesd as the threshold age of the files an appropriately configured age file filter
since:
   Commons IO 1.2



ageFileFilter
public static IOFileFilter ageFileFilter(File cutoffReference, boolean acceptOlder)(Code)
Returns a filter that filters files based on a cutoff reference file.
Parameters:
  cutoffReference - the file whose last modificationtime is usesd as the threshold age of the files
Parameters:
  acceptOlder - if true, older files get accepted, if false, newer an appropriately configured age file filter
since:
   Commons IO 1.2



andFileFilter
public static IOFileFilter andFileFilter(IOFileFilter filter1, IOFileFilter filter2)(Code)
Returns a filter that ANDs the two specified filters.
Parameters:
  filter1 - the first filter
Parameters:
  filter2 - the second filter a filter that ANDs the two specified filters



asFileFilter
public static IOFileFilter asFileFilter(FileFilter filter)(Code)
Returns an IOFileFilter that wraps the FileFilter instance.
Parameters:
  filter - the filter to be wrapped a new filter that implements IOFileFilter



asFileFilter
public static IOFileFilter asFileFilter(FilenameFilter filter)(Code)
Returns an IOFileFilter that wraps the FilenameFilter instance.
Parameters:
  filter - the filter to be wrapped a new filter that implements IOFileFilter



directoryFileFilter
public static IOFileFilter directoryFileFilter()(Code)
Returns a filter that checks if the file is a directory. file filter that accepts only directories and not files



falseFileFilter
public static IOFileFilter falseFileFilter()(Code)
Returns a filter that always returns false. a false filter



fileFileFilter
public static IOFileFilter fileFileFilter()(Code)
Returns a filter that checks if the file is a file (and not a directory). file filter that accepts only files and not directories



makeCVSAware
public static IOFileFilter makeCVSAware(IOFileFilter filter)(Code)
Decorates a filter to make it ignore CVS directories. Passing in null will return a filter that accepts everything except CVS directories.
Parameters:
  filter - the filter to decorate, null means an unrestricted filter the decorated filter, never null
since:
   1.1 (method existed but had bug in 1.0)



makeDirectoryOnly
public static IOFileFilter makeDirectoryOnly(IOFileFilter filter)(Code)
Decorates a filter so that it only applies to directories and not to files.
Parameters:
  filter - the filter to decorate, null means an unrestricted filter the decorated filter, never null
since:
   1.3



makeFileOnly
public static IOFileFilter makeFileOnly(IOFileFilter filter)(Code)
Decorates a filter so that it only applies to files and not to directories.
Parameters:
  filter - the filter to decorate, null means an unrestricted filter the decorated filter, never null
since:
   1.3



makeSVNAware
public static IOFileFilter makeSVNAware(IOFileFilter filter)(Code)
Decorates a filter to make it ignore SVN directories. Passing in null will return a filter that accepts everything except SVN directories.
Parameters:
  filter - the filter to decorate, null means an unrestricted filter the decorated filter, never null
since:
   1.1



nameFileFilter
public static IOFileFilter nameFileFilter(String name)(Code)
Returns a filter that returns true if the filename matches the specified text.
Parameters:
  name - the filename a name checking filter



notFileFilter
public static IOFileFilter notFileFilter(IOFileFilter filter)(Code)
Returns a filter that NOTs the specified filter.
Parameters:
  filter - the filter to invert a filter that NOTs the specified filter



orFileFilter
public static IOFileFilter orFileFilter(IOFileFilter filter1, IOFileFilter filter2)(Code)
Returns a filter that ORs the two specified filters.
Parameters:
  filter1 - the first filter
Parameters:
  filter2 - the second filter a filter that ORs the two specified filters



prefixFileFilter
public static IOFileFilter prefixFileFilter(String prefix)(Code)
Returns a filter that returns true if the filename starts with the specified text.
Parameters:
  prefix - the filename prefix a prefix checking filter



sizeFileFilter
public static IOFileFilter sizeFileFilter(long threshold)(Code)
Returns a filter that returns true if the file is bigger than a certain size.
Parameters:
  threshold - the file size threshold an appropriately configured SizeFileFilter
since:
   Commons IO 1.2



sizeFileFilter
public static IOFileFilter sizeFileFilter(long threshold, boolean acceptLarger)(Code)
Returns a filter that filters based on file size.
Parameters:
  threshold - the file size threshold
Parameters:
  acceptLarger - if true, larger files get accepted, if false, smaller an appropriately configured SizeFileFilter
since:
   Commons IO 1.2



sizeRangeFileFilter
public static IOFileFilter sizeRangeFileFilter(long minSizeInclusive, long maxSizeInclusive)(Code)
Returns a filter that accepts files whose size is >= minimum size and <= maximum size.
Parameters:
  minSizeInclusive - the minimum file size (inclusive)
Parameters:
  maxSizeInclusive - the maximum file size (inclusive) an appropriately configured IOFileFilter
since:
   Commons IO 1.3



suffixFileFilter
public static IOFileFilter suffixFileFilter(String suffix)(Code)
Returns a filter that returns true if the filename ends with the specified text.
Parameters:
  suffix - the filename suffix a suffix checking filter



trueFileFilter
public static IOFileFilter trueFileFilter()(Code)
Returns a filter that always returns true. a true filter



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.