Class DocumentPageStorageImpl
-
- All Implemented Interfaces:
-
io.scanbot.sdk.persistence.page.DocumentPageStorage
,io.scanbot.sdk.persistence.page.PageStorage
public final class DocumentPageStorageImpl implements DocumentPageStorage
Provides File directories for managing Page files.
-
-
Constructor Summary
Constructors Constructor Description DocumentPageStorageImpl(PageStorageSettings pageStorageSettings, DocumentStorage documentStorage)
-
Method Summary
Modifier and Type Method Description File
getPagesDirectory(String documentId)
Provides directory which stores all pages for document. File
getPageDir(String pageId, String documentId)
Provides directory to store image files for current Page. File
getOriginalImage(String pageId, String documentId)
Provides File of the original image. File
getOriginalImagePreview(String pageId, String documentId)
Provides File of the original preview image. File
getDocumentImage(String pageId, String documentId)
Provides File of the document image. File
getDocumentImagePreview(String pageId, String documentId)
Provides File of the document preview image. File
getFilteredImagePreview(String pageId, String documentId, ParametricFilter parametricFilter)
Provides File containing page preview with applied ParametricFilter for a given document. List<File>
getFilteredImagePreviews(String pageId, String documentId)
Provides full list of Files containing page preview with applied filters for a given document. File
getUnfilteredDocumentImage(String pageId, String documentId)
Provides File of the unfiltered document image. File
getUnfilteredDocumentImagePreview(String pageId, String documentId)
Provides File of the unfiltered document preview image. List<String>
getStoredPages(String documentId)
Provides List with all pageIds for a given document. -
-
Constructor Detail
-
DocumentPageStorageImpl
DocumentPageStorageImpl(PageStorageSettings pageStorageSettings, DocumentStorage documentStorage)
-
-
Method Detail
-
getPagesDirectory
File getPagesDirectory(String documentId)
Provides directory which stores all pages for document.
- Parameters:
documentId
-id of a parent document
-
getPageDir
File getPageDir(String pageId, String documentId)
Provides directory to store image files for current Page.
- Parameters:
pageId
-id of a page
documentId
-id of a parent document
-
getOriginalImage
File getOriginalImage(String pageId, String documentId)
Provides File of the original image.
- Parameters:
pageId
-id of a page
documentId
-id of a parent document
-
getOriginalImagePreview
File getOriginalImagePreview(String pageId, String documentId)
Provides File of the original preview image.
- Parameters:
pageId
-id of a page
documentId
-id of a parent document
-
getDocumentImage
File getDocumentImage(String pageId, String documentId)
Provides File of the document image.
- Parameters:
pageId
-id of a page
documentId
-id of a parent document
-
getDocumentImagePreview
File getDocumentImagePreview(String pageId, String documentId)
Provides File of the document preview image.
- Parameters:
pageId
-id of a page
documentId
-id of a parent document
-
getFilteredImagePreview
File getFilteredImagePreview(String pageId, String documentId, ParametricFilter parametricFilter)
Provides File containing page preview with applied ParametricFilter for a given document.
- Parameters:
pageId
-id of a page
documentId
-id of a parent document
parametricFilter
-filter type
-
getFilteredImagePreviews
List<File> getFilteredImagePreviews(String pageId, String documentId)
Provides full list of Files containing page preview with applied filters for a given document.
- Parameters:
pageId
-id of a page
documentId
-id of a parent document
-
getUnfilteredDocumentImage
File getUnfilteredDocumentImage(String pageId, String documentId)
Provides File of the unfiltered document image.
- Parameters:
pageId
-id of a page
documentId
-id of a parent document
-
getUnfilteredDocumentImagePreview
File getUnfilteredDocumentImagePreview(String pageId, String documentId)
Provides File of the unfiltered document preview image.
- Parameters:
pageId
-id of a page
documentId
-id of a parent document
-
getStoredPages
List<String> getStoredPages(String documentId)
Provides List with all pageIds for a given document.
- Parameters:
documentId
-id of a parent document
-
-
-
-