public class XHTMLOfficeDocument extends Object implements OfficeDocument
OfficeDocument
backed by a w3c Document
containing xhtml markup.Constructor and Description |
---|
XHTMLOfficeDocument(Document document,
Map<String,byte[]> artifacts)
Creates a new
XHTMLOfficeDocument . |
Modifier and Type | Method and Description |
---|---|
Map<String,byte[]> |
getArtifacts()
Returns all the artifacts for this office document.
|
String |
getContentAsString()
Returns the content of this document as a string.
|
Document |
getContentDocument()
Returns the content of this office document.
|
public XHTMLOfficeDocument(Document document, Map<String,byte[]> artifacts)
XHTMLOfficeDocument
.document
- the w3c dom representing the office document.artifacts
- artifacts for this office document.public Document getContentDocument()
OfficeDocument
getContentDocument
in interface OfficeDocument
public String getContentAsString()
OfficeDocument
getContentAsString
in interface OfficeDocument
public Map<String,byte[]> getArtifacts()
OfficeDocument
getArtifacts
in interface OfficeDocument
Copyright © 2004–2017 XWiki. All rights reserved.