public class WildcardSpec extends Object
Constructor and Description |
---|
WildcardSpec(File file)
Create a new instance with a file.
|
WildcardSpec(String spec)
Create a new instance with a String file path.
|
Modifier and Type | Method and Description |
---|---|
File[] |
findFiles()
Find all files matching the specialisation.
|
protected File[] |
findFiles(org.oddjob.io.WildcardSpec.DirectorySplit split)
Recursively find file in the path.
|
boolean |
isWildcardSpec()
Is the file specification a wild card specification.
|
static void |
possiblyRecursiveMatch(File from,
String namespec,
List<File> results) |
public WildcardSpec(String spec)
spec
- public WildcardSpec(File file)
file
- public boolean isWildcardSpec()
public File[] findFiles() throws IOException
IOException
protected File[] findFiles(org.oddjob.io.WildcardSpec.DirectorySplit split) throws IOException
split
- The path split up into wildcard sections.IOException