diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-03-25 11:11:30 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-03-25 11:11:30 +0000 |
| commit | 2936b9a800e43ecebb50be73c98528ac7f5413d9 (patch) | |
| tree | 63be3804ca609613350cf99b43844edca23ac15e | |
| parent | abdb133df65e9e239cd1d52a3c1d26f9a6a4d73c (diff) | |
Update README.md now that Result.messages is a set
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -71,7 +71,7 @@ import org.zwobble.mammoth.Result; DocumentConverter converter = new DocumentConverter(); Result<String> result = converter.convertToHtml(new File("document.docx")); String html = result.getValue(); // The generated HTML -List<String> warnings = result.getWarnings(); // Any warnings during conversion +Set<String> warnings = result.getWarnings(); // Any warnings during conversion ``` You can also extract the raw text of the document by using `extractRawText`. @@ -82,7 +82,7 @@ Each paragraph is followed by two newlines. DocumentConverter converter = new DocumentConverter(); Result<String> result = converter.extractRawText(new File("document.docx")); String html = result.getValue(); // The raw text -List<String> warnings = result.getWarnings(); // Any warnings during conversion +Set<String> warnings = result.getWarnings(); // Any warnings during conversion ``` #### Custom style map @@ -207,7 +207,7 @@ Represents the result of a conversion. Methods: * `T getValue()`: the generated text. -* `List<String> getWarnings()`: any warnings generated during the conversion. +* `Set<String> getWarnings()`: any warnings generated during the conversion. ## Writing style maps |
