Class DocumentStorageBase
-
- All Implemented Interfaces:
-
io.scanbot.sdk.persistence.document.DocumentStorage
public abstract class DocumentStorageBase implements DocumentStorage
Provides File directories for saving documents
-
-
Constructor Summary
Constructors Constructor Description DocumentStorageBase()
-
Method Summary
Modifier and Type Method Description File
getDocumentDir(String documentId)
Provides directory to save files for current Document. List<String>
getStoredDocuments()
Provides List with all documentIds. File
getDocumentJsonFile(String documentId)
Provides File of the document json file. Boolean
delete(String documentId)
Deletes document data by provided id. Boolean
deleteAll()
Deletes all documents. File
getDocumentPdfFile(String documentId)
Provides File of the document pdf file. File
getDocumentTiffFile(String documentId)
Provides File of the document tiff file. -
-
Method Detail
-
getDocumentDir
File getDocumentDir(String documentId)
Provides directory to save files for current Document.
- Parameters:
documentId
-id of a document
-
getStoredDocuments
List<String> getStoredDocuments()
Provides List with all documentIds.
-
getDocumentJsonFile
File getDocumentJsonFile(String documentId)
Provides File of the document json file.
- Parameters:
documentId
-id of a document
-
getDocumentPdfFile
File getDocumentPdfFile(String documentId)
Provides File of the document pdf file.
- Parameters:
documentId
-id of a document
-
getDocumentTiffFile
File getDocumentTiffFile(String documentId)
Provides File of the document tiff file.
- Parameters:
documentId
-id of a document
-
-
-
-