Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
DirectoryFetcher
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.
Definition
Namespace: com.dynamsoft.utility
Assembly: DynamsoftUtility.aar
class DirectoryFetcher extends ImageSourceAdapter
Methods
Method | Description |
---|---|
setDirectory |
Sets the directory path and filter for the file search. |
DirectoryFetcher |
The constructor. |
setDirectory
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. |
DirectoryFetcher
The constructor.
DirectoryFetcher()