summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-03-25 11:11:30 +0000
committerMichael Williamson <mike@zwobble.org>2016-03-25 11:11:30 +0000
commit2936b9a800e43ecebb50be73c98528ac7f5413d9 (patch)
tree63be3804ca609613350cf99b43844edca23ac15e
parentabdb133df65e9e239cd1d52a3c1d26f9a6a4d73c (diff)
Update README.md now that Result.messages is a set
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index d91ce52..98c1166 100644
--- a/README.md
+++ b/README.md
@@ -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