Package io.scanbot.sdk.persistence.page
Class PageFileStorage
-
- All Implemented Interfaces:
public class PageFileStorage
Interaction class which could operate with Page files.
-
-
Field Summary
Fields Modifier and Type Field Description private final DocumentPageStorage
pageStorage
-
Constructor Summary
Constructors Constructor Description PageFileStorage(DocumentPageStorageProcessor pageStorageProcessor, DocumentPageStorage pageStorage, FileIOProcessor fileIOProcessor)
-
Method Summary
Modifier and Type Method Description final DocumentPageStorage
getPageStorage()
final Uri
getImageURI(String pageId, String documentId, PageFileType type)
Provides imageUri for given page type. final Uri
getPreviewImageURI(String pageId, String documentId, PageFileType type)
Provides preview imageUri for given page type. final Bitmap
getImage(String pageId, String documentId, PageFileType type, BitmapFactory.Options options)
Provides Bitmap image of type for given pageId. final Bitmap
getImage(File imageFile, BitmapFactory.Options options)
Provides image Bitmap from provided File. final Bitmap
getPreviewImage(String pageId, String documentId, PageFileType type, BitmapFactory.Options options)
Provides preview Bitmap image of type for given pageId. -
-
Constructor Detail
-
PageFileStorage
PageFileStorage(DocumentPageStorageProcessor pageStorageProcessor, DocumentPageStorage pageStorage, FileIOProcessor fileIOProcessor)
-
-
Method Detail
-
getPageStorage
final DocumentPageStorage getPageStorage()
-
getImageURI
final Uri getImageURI(String pageId, String documentId, PageFileType type)
-
getPreviewImageURI
final Uri getPreviewImageURI(String pageId, String documentId, PageFileType type)
-
getImage
final Bitmap getImage(String pageId, String documentId, PageFileType type, BitmapFactory.Options options)
-
getImage
final Bitmap getImage(File imageFile, BitmapFactory.Options options)
-
getPreviewImage
final Bitmap getPreviewImage(String pageId, String documentId, PageFileType type, BitmapFactory.Options options)
-
-
-
-