public class DOMDocument extends ForestDocument
ForestDocument
containing a DOM document node
representation of a document as stored in the expanded tree
cache of a forest on disk.
You cannot use this class to modify a document. However, you
can create a modifiable copy of the underlying document
using DocumentImpl
on the
document returned by getDocument()
.
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
DOMDocument() |
DOMDocument(ExpandedTree tree) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContentAsByteArray()
Return content as byte array.
|
MarkLogicNode |
getContentAsMarkLogicNode()
Return content as MarkLogicNode.
|
String |
getContentAsString()
Return content as String.
|
org.apache.hadoop.io.Text |
getContentAsText()
Return content as Text.
|
ContentType |
getContentType()
Return content type of the document.
|
Document |
getDocument() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
createDocument, getCollections, getContentAsByteStream, getContentSize, getFragmentOrdinal, isStreamable
public DOMDocument()
public DOMDocument(ExpandedTree tree)
public Document getDocument()
public void readFields(DataInput in) throws IOException
readFields
in interface MarkLogicDocument
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class ForestDocument
IOException
public void write(DataOutput out) throws IOException
write
in interface MarkLogicDocument
write
in interface org.apache.hadoop.io.Writable
write
in class ForestDocument
IOException
public byte[] getContentAsByteArray()
MarkLogicDocument
public MarkLogicNode getContentAsMarkLogicNode()
MarkLogicDocument
public org.apache.hadoop.io.Text getContentAsText()
MarkLogicDocument
public ContentType getContentType()
MarkLogicDocument
public String getContentAsString() throws UnsupportedEncodingException
MarkLogicDocument
UnsupportedEncodingException
Copyright © 2016 MarkLogic Corporation. All Rights Reserved.
Complete online documentation for MarkLogic Server, XQuery and related components may be found at developer.marklogic.com