public class PageFileStorage
Interactor class which could operate with Page files
| Constructor and Description |
|---|
PageFileStorage(PageProcessorInteractor pageProcessorInteractor,
PageStorage pageStorage)
Interactor class which could operate with Page files
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
add(byte[] image)
Adds image in the storage, does not create document, and returns pageId.
Creates previews.
|
java.lang.String |
add(android.graphics.Bitmap image)
Adds image in the storage, does not create document and returns pageId.
Creates previews.
|
java.lang.String |
addWithDocumentProcessing(byte[] image)
Adds image in the storage, and returns pageId.
Creates previews, and detects contours.
|
java.lang.String |
addWithDocumentProcessing(android.graphics.Bitmap image)
Adds image in the storage, and returns pageId.
Creates previews, and detects contours.
|
android.net.Uri |
getImageURL(java.lang.String pageId,
PageFileStorage.PageFileType type)
Provides imageUri URI for provided type
|
android.net.Uri |
getPreviewImageURI(java.lang.String pageId,
PageFileStorage.PageFileType type)
Provides preview imageUri URI for provided type
|
java.util.List<java.lang.String> |
getStoredPages()
Provides List with all pageIds
|
boolean |
remove(java.lang.String pageId)
Removes all files for pageId
|
boolean |
removeAll()
Removes all files
|
void |
removeAllExcept(java.util.List<java.lang.String> pageIds)
Removes all files, except list of provided pages
|
void |
setImageForId(byte[] image,
java.lang.String existingPageId,
PageFileStorage.PageFileType type)
Replace images for type, for existingPageId
|
void |
setImageForId(android.graphics.Bitmap image,
java.lang.String existingPageId,
PageFileStorage.PageFileType type)
Replace images for type, for existingPageId
|
public PageFileStorage(PageProcessorInteractor pageProcessorInteractor, PageStorage pageStorage)
Interactor class which could operate with Page files
public android.net.Uri getImageURL(java.lang.String pageId,
PageFileStorage.PageFileType type)
Provides imageUri URI for provided type
public android.net.Uri getPreviewImageURI(java.lang.String pageId,
PageFileStorage.PageFileType type)
Provides preview imageUri URI for provided type
public java.lang.String addWithDocumentProcessing(byte[] image)
Adds image in the storage, and returns pageId. Creates previews, and detects contours.
public java.lang.String addWithDocumentProcessing(android.graphics.Bitmap image)
Adds image in the storage, and returns pageId. Creates previews, and detects contours.
public java.lang.String add(byte[] image)
Adds image in the storage, does not create document, and returns pageId. Creates previews.
public java.lang.String add(android.graphics.Bitmap image)
Adds image in the storage, does not create document and returns pageId. Creates previews.
public void setImageForId(byte[] image,
java.lang.String existingPageId,
PageFileStorage.PageFileType type)
Replace images for type, for existingPageId
public void setImageForId(android.graphics.Bitmap image,
java.lang.String existingPageId,
PageFileStorage.PageFileType type)
Replace images for type, for existingPageId
public boolean remove(java.lang.String pageId)
Removes all files for pageId
public boolean removeAll()
Removes all files
public java.util.List<java.lang.String> getStoredPages()
Provides List with all pageIds
public void removeAllExcept(java.util.List<java.lang.String> pageIds)
Removes all files, except list of provided pages