Package com.day.util

Class FileExpander

  • All Implemented Interfaces:
    HandleExpander

    public class FileExpander
    extends java.lang.Object
    implements 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
    • Method Detail

      • expand

        public java.lang.String[] expand​(java.lang.String pattern)
        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:
        expand in interface HandleExpander
        Parameters:
        pattern - the pattern to match.
        Returns:
        A list of filenames matching the pattern
        See Also:
        for a description of the pattern format.