From 2936b9a800e43ecebb50be73c98528ac7f5413d9 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 25 Mar 2016 11:11:30 +0000 Subject: Update README.md now that Result.messages is a set --- README.md | 6 +++--- 1 file 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 result = converter.convertToHtml(new File("document.docx")); String html = result.getValue(); // The generated HTML -List warnings = result.getWarnings(); // Any warnings during conversion +Set 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 result = converter.extractRawText(new File("document.docx")); String html = result.getValue(); // The raw text -List warnings = result.getWarnings(); // Any warnings during conversion +Set 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 getWarnings()`: any warnings generated during the conversion. +* `Set getWarnings()`: any warnings generated during the conversion. ## Writing style maps -- cgit v1.2.3