com.onionnetworks.antflow.job
Class DirectoryHotFolderJob.AcceptRejectFileFilter

java.lang.Object
  extended bycom.onionnetworks.antflow.job.DirectoryHotFolderJob.AcceptRejectFileFilter
All Implemented Interfaces:
java.io.FileFilter
Enclosing class:
DirectoryHotFolderJob

public static class DirectoryHotFolderJob.AcceptRejectFileFilter
extends java.lang.Object
implements java.io.FileFilter

Allows for a single UNIX/DOS wildcard pattern for each accept and reject and filters filees based on their name only. Files pass if both accept matches and reject does not. The accept and reject values begin as '*' and (empty), respectively. Case sensitivity defaults to that of the underlying filesystem. All directories as passed through.

See bug 404 for an explanation of why it works that way.


Field Summary
(package private)  boolean caseSensitive
           
 
Constructor Summary
DirectoryHotFolderJob.AcceptRejectFileFilter()
           
DirectoryHotFolderJob.AcceptRejectFileFilter(boolean c)
           
 
Method Summary
 boolean accept(java.io.File file)
           
 void setAccept(java.lang.String a)
           
 void setReject(java.lang.String r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

caseSensitive

boolean caseSensitive
Constructor Detail

DirectoryHotFolderJob.AcceptRejectFileFilter

public DirectoryHotFolderJob.AcceptRejectFileFilter()

DirectoryHotFolderJob.AcceptRejectFileFilter

public DirectoryHotFolderJob.AcceptRejectFileFilter(boolean c)
Method Detail

setAccept

public void setAccept(java.lang.String a)

setReject

public void setReject(java.lang.String r)

accept

public boolean accept(java.io.File file)
Specified by:
accept in interface java.io.FileFilter


Copyright © 2003-2004 Onion Networks. All Rights Reserved.