diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-02-14 14:27:47 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-02-14 14:27:47 +0000 |
| commit | a07cddd98e2fdad40d2226818b04be1787abc6cf (patch) | |
| tree | 7ebd1780ee00e35c82773c23d7e88a0c4ca19031 /src/main/java/org/zwobble/mammoth/Mammoth.java | |
| parent | b62ec02a9fe1379467342ad1001ccb99b4f21642 (diff) | |
Add notes to document
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/Mammoth.java')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/Mammoth.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/java/org/zwobble/mammoth/Mammoth.java b/src/main/java/org/zwobble/mammoth/Mammoth.java index 26db504..2201bd2 100644 --- a/src/main/java/org/zwobble/mammoth/Mammoth.java +++ b/src/main/java/org/zwobble/mammoth/Mammoth.java @@ -1,5 +1,6 @@ package org.zwobble.mammoth; +import org.zwobble.mammoth.documents.Notes; import org.zwobble.mammoth.docx.*; import org.zwobble.mammoth.html.Html; import org.zwobble.mammoth.results.Result; @@ -7,7 +8,6 @@ import org.zwobble.mammoth.xml.XmlElement; import java.io.File; import java.io.IOException; -import java.io.InputStream; import java.util.zip.ZipFile; public class Mammoth { @@ -19,11 +19,9 @@ public class Mammoth { Numbering numbering = Numbering.EMPTY; Relationships relationships = Relationships.EMPTY; ContentTypes contentTypes = ContentTypes.DEFAULT; - FileReader fileReader = new FileReader() { - @Override - public InputStream getInputStream(String uri) throws IOException { - throw new UnsupportedOperationException(); - } + Notes notes = Notes.EMPTY; + FileReader fileReader = uri -> { + throw new UnsupportedOperationException(); }; DocumentXmlReader reader = new DocumentXmlReader(new BodyXmlReader( styles, @@ -31,7 +29,7 @@ public class Mammoth { relationships, contentTypes, zipFile, - fileReader)); + fileReader), notes); // TODO: prefix String idPrefix = "document"; return reader.readElement(documentXml) |
