01: package de.anomic.tools;
02:
03: // md5DirFileFilter.java
04: // -----------------------
05: // (C) by Michael Peter Christen; mc@anomic.de
06: // first published on http://www.anomic.de
07: // Frankfurt, Germany, 2004, 2005
08: //
09: // This file is contributed by Martin Thelian
10: //
11: // $LastChangedDate: 2006-08-06 10:09:39 +0200 (So, 06 Aug 2006) $
12: // $LastChangedRevision: 2349 $
13: // $LastChangedBy: theli $
14: //
15: // This program is free software; you can redistribute it and/or modify
16: // it under the terms of the GNU General Public License as published by
17: // the Free Software Foundation; either version 2 of the License, or
18: // (at your option) any later version.
19: //
20: // This program is distributed in the hope that it will be useful,
21: // but WITHOUT ANY WARRANTY; without even the implied warranty of
22: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23: // GNU General Public License for more details.
24: //
25: // You should have received a copy of the GNU General Public License
26: // along with this program; if not, write to the Free Software
27: // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28: //
29: // Using this software in any meaning (reading, learning, copying, compiling,
30: // running) means that you agree that the Author(s) is (are) not responsible
31: // for cost, loss of data or any harm that may be caused directly or indirectly
32: // by usage of this softare or this documentation. The usage of this software
33: // is on your own risk. The installation and usage (starting/running) of this
34: // software may allow other people or application to access your computer and
35: // any attached devices and is highly dependent on the configuration of the
36: // software which must be done by the user of the software; the author(s) is
37: // (are) also not responsible for proper configuration and usage of the
38: // software, even if provoked by documentation provided together with
39: // the software.
40: //
41: // Any changes to this file according to the GPL as documented in the file
42: // gpl.txt aside this file in the shipment you received can be done to the
43: // lines that follows this copyright notice here, but changes must not be
44: // done inside the copyright notive above. A re-distribution must contain
45: // the intact and unchanged copyright notice.
46: // Contributions and changes to the program code must be marked as such.
47:
48: import java.io.File;
49: import java.io.FilenameFilter;
50:
51: public class md5DirFileFilter implements FilenameFilter {
52:
53: public boolean accept(File dir, String name) {
54: return !(name.startsWith("dir.") || name.endsWith(".md5"));
55: }
56:
57: }
|