com.google.code.java2objc.examples.main
Class PatternBasedFilenameFilter

java.lang.Object
  extended by com.google.code.java2objc.examples.main.PatternBasedFilenameFilter
All Implemented Interfaces:
FilenameFilter

public final class PatternBasedFilenameFilter
extends Object
implements FilenameFilter

A FilenamePattern that matches file names based on a regular expression

Author:
Inderjeet Singh

Constructor Summary
PatternBasedFilenameFilter(String fileNamePattern)
           
 
Method Summary
 boolean accept(File dir, String name)
           
static FilenameFilter getFilterForJavaFiles()
          Returns a FilenameFilter for matching allowed Java source file names This ignores the valid Unicode characters for now.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternBasedFilenameFilter

public PatternBasedFilenameFilter(String fileNamePattern)
Method Detail

accept

public boolean accept(File dir,
                      String name)
Specified by:
accept in interface FilenameFilter

getFilterForJavaFiles

public static FilenameFilter getFilterForJavaFiles()
Returns a FilenameFilter for matching allowed Java source file names This ignores the valid Unicode characters for now. A Java file name can not have the following characters: ~!@%^&*()-+=[]{}\\|:;'\",.<>?/



Copyright © 2011. All Rights Reserved.