diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-01-03 14:36:59 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-01-03 14:36:59 +0000 |
| commit | 4f8ad8f0588564679cb8ccb9ae4592738810d800 (patch) | |
| tree | fa8d0d1c2115079e362e0218b5d530f1502138c4 /src/main/java/org/zwobble/mammoth/Mammoth.java | |
| parent | 07685b4a361f8827728513f9d7360bd91dc1a246 (diff) | |
Add map as shorter alias for ImmutableMap.of
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/Mammoth.java')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/Mammoth.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/org/zwobble/mammoth/Mammoth.java b/src/main/java/org/zwobble/mammoth/Mammoth.java index e2408e9..e834b3b 100644 --- a/src/main/java/org/zwobble/mammoth/Mammoth.java +++ b/src/main/java/org/zwobble/mammoth/Mammoth.java @@ -1,19 +1,15 @@ package org.zwobble.mammoth; import com.google.common.base.Joiner; -import com.google.common.collect.ImmutableBiMap; -import com.google.common.collect.ImmutableMap; import org.zwobble.mammoth.documents.*; import org.zwobble.mammoth.docx.BodyXmlReader; import org.zwobble.mammoth.docx.DocumentXmlReader; import org.zwobble.mammoth.docx.OfficeXml; import org.zwobble.mammoth.docx.Styles; import org.zwobble.mammoth.xml.XmlElement; -import org.zwobble.mammoth.xml.parsing.XmlParser; import java.io.File; import java.io.IOException; -import java.io.InputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @@ -25,7 +21,7 @@ public class Mammoth { ZipEntry entry = zipFile.getEntry("word/document.xml"); XmlElement documentXml = OfficeXml.parseXml(zipFile.getInputStream(entry)); - Styles styles = new Styles(ImmutableMap.of(), ImmutableMap.of()); + Styles styles = Styles.EMPTY; Document document = new DocumentXmlReader(new BodyXmlReader(styles)).readElement(documentXml); return convertToHtml(document); } catch (IOException e) { |
