IFileCollector

public interface IFileCollector

Defines methods for selecting collections of files.

Methods

MethodDescription
getFileNamesByExtension(String extension)Returns the array of file names by an extension.
getFileNamesByExtension(String extension, String path)Returns the array of file names by an extension.

getFileNamesByExtension(String extension)

public abstract String[] getFileNamesByExtension(String extension)

Returns the array of file names by an extension.

Parameters:

ParameterTypeDescription
extensionjava.lang.StringThe file extension.

Returns: java.lang.String[] - The array of file names.

getFileNamesByExtension(String extension, String path)

public abstract String[] getFileNamesByExtension(String extension, String path)

Returns the array of file names by an extension.

Parameters:

ParameterTypeDescription
extensionjava.lang.StringThe file extension.
pathjava.lang.StringThe path inside the directory.

Returns: java.lang.String[] - The array of file names.