public interface CustomXmlDataStorage
Modifier and Type | Method and Description |
---|---|
String |
cachedXPathGetString(String xpath,
String prefixMappings)
Uses org.apache.xpath.CachedXPathAPI for better performance, since Apache's old XPathAPI class,
have the drawback of instantiating a new XPathContext
(and thus building a new DTMManager, and new DTMs) each time it was called.
|
void |
discardCacheXPathObject()
Use this to null out the org.apache.xpath.CachedXPathAPI object, which you should do
if you've changed your source document, or want to reclaim memory.
|
CustomXmlDataStorage |
factory()
Create this object.
|
Document |
getDocument()
Write the contents of this object to the org.w3c.dom.Document
|
String |
getXML()
Get the XML as a String.
|
void |
setDocument(Document doc) |
void |
setDocument(InputStream is)
Set the contents of this object from the input stream
|
boolean |
setNodeValueAtXPath(String xpath,
String value,
String prefixMappings) |
void |
writeDocument(OutputStream os)
Write the contents of this object to the output stream
|
List<Node> |
xpathGetNodes(String xpathString,
String prefixMappings) |
String |
xpathGetString(String xpath,
String prefixMappings)
Get the data pointed to by the xpath.
|
CustomXmlDataStorage factory()
String xpathGetString(String xpath, String prefixMappings) throws Docx4JException
xpath
- Docx4JException
String cachedXPathGetString(String xpath, String prefixMappings) throws Docx4JException
xpath
- prefixMappings
- Docx4JException
discardCacheXPathObject
void discardCacheXPathObject()
boolean setNodeValueAtXPath(String xpath, String value, String prefixMappings) throws Docx4JException
Docx4JException
void setDocument(InputStream is) throws Docx4JException
is
- Docx4JException
void setDocument(Document doc) throws Docx4JException
Docx4JException
void writeDocument(OutputStream os) throws Docx4JException
os
- Docx4JException
Document getDocument() throws Docx4JException
os
- Docx4JException
String getXML() throws Docx4JException
Docx4JException
Copyright © 2007-2018. All Rights Reserved.