Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
FileFetcher
You are viewing a history document page of DynamsoftUtility v1.0.10.
The FileFetcher
class is a utility class that partitions a multi-page image file into multiple independent ImageData
objects. It inherits from the ImageSourceAdapter
class.
Definition
Namespace: com.dynamsoft.utility
Assembly: DynamsoftUtility.aar
class FileFetcher
Methods
Method | Description |
---|---|
setFile(filePath) |
Sets the file with a file path. |
setFile(fileBytes) |
Sets the file with file bytes. |
setFile(imageData) |
Sets the file with a ImageData object. |
setFile(bitmap) |
Sets the file with a Bitmap . |
hasNextImageToFetch |
Whether there is a next image to fetch. |
getImage |
Get the image data of the image. |
setFile(filePath)
Sets the file with a file path.
void setFile(String filePath) throws UtilityException
Parameters
[in] filePath
: The file path.
Exception
Error Code | Value | Description |
---|---|---|
EC_FILE_NOT_FOUND | -10005 | The file is not found. |
EC_FILE_TYPE_NOT_SUPPORTED | -10006 | The file type is not supported. |
setFile(fileBytes)
Sets the file with file bytes.
void setFile(byte[] fileBytes) throws UtilityException
Parameters
[in] fileBytes
: The file bytes.
Exception
Error Code | Value | Description |
---|---|---|
EC_NULL_POINTER | -10002 | The fileBytes you input is null. |
setFile(imageData)
Sets the file with a ImageData
object.
void setFile(ImageData imageData) throws UtilityException
Parameters
[in] buffer
: The image data.
Exception
Error Code | Value | Description |
---|---|---|
EC_NULL_POINTER | -10002 | The ImageData object is null. |
setFile(bitmap)
Sets the file with an android.graphics.Bitmap
.
void setFile(Bitmap bitmap) throws UtilityException
Parameters
[in] image
: An android.graphics.Bitmap
.
Exception
Error Code | Value | Description |
---|---|---|
EC_NULL_POINTER | -10002 | The image data of the Bitmap is null. |
hasNextImageToFetch
Whether there is a next image to fetch.
boolean hasNextImageToFetch()
Return Value
A boolean value that indicates whether there is a next image to fetch.
getImage
Get the image data of the image.
ImageData getImage()
Return Value
A ImageData
as the image.