Resource Base
Table of contents

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.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

version 1.0.10

  • Latest version
  • Version 2.x
    • Version 2.2.10
    • Version 2.0.21
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.2.10
    • Version 2.0.21
    • Version 2.0.20
    • Version 2.0.10
  • Version 1.x
    • Version 1.2.1
    • Version 1.2.0
    • Version 1.1.0
    • Version 1.0.0
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
    • Version 1.1.11
    • Version 1.1.9
    • Version 1.1.8
    • Version 1.1.7
    • Version 1.1.6
    • Version 1.1.5
    • Version 1.1.4
    • Version 1.1.3
    • Version 1.1.2
    • Version 1.1.1
    • Version 1.1.0
    • Version 1.0.0
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support