layout | title | description | keywords | needGenerateH3Content | needAutoGenerateSidebar | noTitleIndex |
---|---|---|---|---|---|---|
default-layout |
DirectoryFetcher * Dynamsoft Capture Vision Router Module Android Edition API Reference |
The class DirectoryFetcher of Dynamsoft Capture Vision Router Module is a utility class that retrieves a list of files from a specified directory based on certain criteria. |
directory fetcher, Java, Kotlin |
true |
true |
true |
You are viewing a history document page of DynamsoftUtility v1.0.10.
The DirectoryFetcher
class is a utility class that retrieves a list of files from a specified directory based on certain criteria. It inherits from the ImageSourceAdapter
class.
Namespace: com.dynamsoft.utility
Assembly: DynamsoftUtility.aar
class DirectoryFetcher extends ImageSourceAdapter
Method | Description |
---|---|
setDirectory |
Sets the directory path and filter for the file search. |
DirectoryFetcher |
The constructor. |
Sets the directory path and filter for the file search.
void setDirectory(String directoryPath, String filter, boolean recursive) throws UtilityException;
Parameters
[in] directoryPath
: The directory path.
[in] filter
: A string that specifies file extensions. It determines which kinds of files to read. e.g "*.BMP;*.JPG;*.GIF".
[in] recursive
: Specifies whether to load files recursively.
Exception
Error Code | Value | Description |
---|---|---|
EC_READ_DIRECTORY_FAILED | -10064 | Failed to read the directory. |
The constructor.
DirectoryFetcher()