public class ExtractFiles extends Object implements FilenameFilter
Constructor and Description |
---|
ExtractFiles()
Empty default constructor
|
ExtractFiles(String file)
Constructor from string
|
ExtractFiles(Vector files)
Constructor with a Vector of Strings
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(File dir,
String name) |
void |
check(String name)
Check for duplicates or unexisting paths
|
HashSet |
getDuplicateFiles()
Check for duplicate simple files
|
Vector |
getMatchingFiles()
Extract the files containing wildcards
|
static String |
getName(String path) |
HashSet |
getNoMatchingFiles()
Check for No matching files
|
static boolean |
isAbsolute(String path)
check wheater the path correspond to an absolute name
with no SO dependencies
|
public ExtractFiles()
public ExtractFiles(String file)
file
- the path of the file to be extraced in its string representationpublic ExtractFiles(Vector files)
files
- a Vector of paths to be extractedpublic Vector getMatchingFiles()
public void check(String name) throws JobAdException
name
- the name of the attribute chekedJobAdException
- if one or more file has a duplicated name or if it's impossible to find one or more specified pathpublic HashSet getNoMatchingFiles()
public HashSet getDuplicateFiles()
public boolean accept(File dir, String name)
accept
in interface FilenameFilter
public static boolean isAbsolute(String path)
path
- the string corresponding to the path to be checkedCopyright © 2016 EMI - European Middleware Initiative. All Rights Reserved.