|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.jdl.ExtractFiles
public class ExtractFiles
This class is used principally by JobAd class. It provides a series of utilities such as extracting a wildcards file extraction from a path
Constructor Summary | |
---|---|
ExtractFiles()
Empty default constructor |
|
ExtractFiles(java.lang.String file)
Constructor from string |
|
ExtractFiles(java.util.Vector files)
Constructor with a Vector of Strings |
Method Summary | |
---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
|
void |
check(java.lang.String name)
Check for duplicates or unexisting paths |
java.util.HashSet |
getDuplicateFiles()
Check for duplicate simple files |
java.util.Vector |
getMatchingFiles()
Extract the files containing wildcards |
static java.lang.String |
getName(java.lang.String path)
|
java.util.HashSet |
getNoMatchingFiles()
Check for No matching files |
static boolean |
isAbsolute(java.lang.String path)
check wheater the path correspond to an absolute name with no SO dependencies |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtractFiles()
public ExtractFiles(java.lang.String file)
file
- the path of the file to be extraced in its string representationpublic ExtractFiles(java.util.Vector files)
files
- a Vector of paths to be extractedMethod Detail |
---|
public java.util.Vector getMatchingFiles()
public void check(java.lang.String name) throws JobAdException
name
- the name of the attribute cheked
JobAdException
- if one or more file has a duplicated name or if it's impossible to find one or more specified pathpublic java.util.HashSet getNoMatchingFiles()
public java.util.HashSet getDuplicateFiles()
public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
public static java.lang.String getName(java.lang.String path)
public static boolean isAbsolute(java.lang.String path)
path
- the string corresponding to the path to be checked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |