home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
WildCardDirectoryFilenameFilter.java
< prev
next >
Wrap
Text File
|
1998-09-08
|
947b
|
49 lines
package com.symantec.itools.io;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
/**
* @author Symantec Internet Tools Division
* @version 1.0
* @since VCafe 3.0
*/
public class WildCardDirectoryFilenameFilter
extends WildCardFilenameFilter
implements DirectoryFilenameFilter
{
public WildCardDirectoryFilenameFilter(String pattern)
{
super(pattern);
}
public WildCardDirectoryFilenameFilter(String pattern, boolean f)
{
super(pattern, f);
}
/**
* @param dir TODO
* @param name TODO
* @since VCafe 3.0
*/
public boolean accept(File dir, String name)
{
File file;
// FIX!!!!!
file = new File(dir.getAbsolutePath() + name);
if(file.isDirectory())
{
return (matchFilename(name));
}
return (false);
}
}