public class XHTMLOfficeDocument extends Object implements OfficeDocument
OfficeDocument
backed by a w3c Document
containing xhtml markup.Constructor and Description |
---|
XHTMLOfficeDocument(Document document,
Set<File> artifactFiles,
OfficeConverterResult converterResult)
Creates a new
XHTMLOfficeDocument . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Set<File> |
getArtifactsFiles()
Returns the files corresponding to all the artifacts for this office document, except the conversion of the
document itself.
|
String |
getContentAsString()
Returns the content of this document as a string.
|
Document |
getContentDocument()
Returns the content of this office document.
|
OfficeConverterResult |
getConverterResult() |
@Unstable public XHTMLOfficeDocument(Document document, Set<File> artifactFiles, OfficeConverterResult converterResult)
XHTMLOfficeDocument
.document
- the w3c dom representing the office document.artifactFiles
- artifacts for this office document.converterResult
- the OfficeConverterResult
used to build that object.public Document getContentDocument()
OfficeDocument
getContentDocument
in interface OfficeDocument
public String getContentAsString()
OfficeDocument
getContentAsString
in interface OfficeDocument
public Set<File> getArtifactsFiles()
OfficeDocument
getArtifactsFiles
in interface OfficeDocument
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface OfficeDocument
IOException
public OfficeConverterResult getConverterResult()
getConverterResult
in interface OfficeDocument
Copyright © 2004–2021 XWiki. All rights reserved.