Package com.day.util
Class FileExpander
java.lang.Object
com.day.util.FileExpander
- All Implemented Interfaces:
HandleExpander
The
FileExpander takes file names as input, expands them
according to the globbing patterns and returns a list of file names.- Since:
- coati Audience wad
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheBaseFilterclass is an abstract base class for the file and directory matcher class, which accepts files based on globbing patterns. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FileExpander.BaseFilterstatic final FileExpander.BaseFilterstatic final FileExpander.BaseFilter -
Constructor Summary
ConstructorsConstructorDescriptionFileExpander(File root, FileExpander.BaseFilter type) FileExpander(String root, FileExpander.BaseFilter type) -
Method Summary
-
Field Details
-
RETURN_ALL
-
RETURN_FILES
-
RETURN_DIRECTORIES
-
-
Constructor Details
-
FileExpander
public FileExpander() -
FileExpander
-
FileExpander
-
-
Method Details
-
expand
Expands the file name pattern returning a list of file names matching to that pattern. This list will only contain names of real files regardless of whether a directory's name would match the pattern or not.- Specified by:
expandin interfaceHandleExpander- Parameters:
pattern- the pattern to match.- Returns:
- A list of filenames matching the pattern
- See Also:
-