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 FilegetDocumentDir(String documentId)Provides directory to save files for current Document. List<String>getStoredDocuments()Provides List with all documentIds. FilegetDocumentJsonFile(String documentId)Provides File of the document json file. Booleandelete(String documentId)Deletes document data by provided id. BooleandeleteAll()Deletes all documents. FilegetDocumentPdfFile(String documentId)Provides File of the document pdf file. FilegetDocumentTiffFile(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
-
-
-
-