public class FileExpander extends java.lang.Object implements HandleExpander
FileExpander
takes file names as input, expands them
according to the globbing patterns and returns a list of file names.Modifier and Type | Class and Description |
---|---|
static class |
FileExpander.BaseFilter
The
BaseFilter class is an abstract base class for the file
and directory matcher class, which accepts files based on globbing
patterns. |
Modifier and Type | Field and Description |
---|---|
static FileExpander.BaseFilter |
RETURN_ALL |
static FileExpander.BaseFilter |
RETURN_DIRECTORIES |
static FileExpander.BaseFilter |
RETURN_FILES |
Constructor and Description |
---|
FileExpander() |
FileExpander(java.io.File root,
FileExpander.BaseFilter type) |
FileExpander(java.lang.String root,
FileExpander.BaseFilter type) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
expand(java.lang.String pattern)
Expands the file name pattern returning a list of file names matching
to that pattern.
|
public static final FileExpander.BaseFilter RETURN_ALL
public static final FileExpander.BaseFilter RETURN_FILES
public static final FileExpander.BaseFilter RETURN_DIRECTORIES
public FileExpander()
public FileExpander(java.lang.String root, FileExpander.BaseFilter type)
public FileExpander(java.io.File root, FileExpander.BaseFilter type)
public java.lang.String[] expand(java.lang.String pattern)
expand
in interface HandleExpander
pattern
- the pattern to match.for a description of the pattern format.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"