public class DocumentRecoveryMode
extends java.lang.Object
Examples:
Shows how to try to recover a document if errors occurred during loading.
LoadOptions loadOptions = new LoadOptions();
loadOptions.setRecoveryMode(DocumentRecoveryMode.TRY_RECOVER);
Document doc = new Document(getMyDir() + "Corrupted footnotes.docx", loadOptions);
| Modifier and Type | Field and Description |
|---|---|
static int |
length |
static int |
NONE
No recovery is attempted.
|
static int |
TRY_RECOVER
Attempts to recover the document while preserving as much data as possible.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromName(java.lang.String documentRecoveryModeName) |
static java.lang.String |
getName(int documentRecoveryMode) |
static int[] |
getValues() |
static java.lang.String |
toString(int documentRecoveryMode) |