public class DOMReader extends Object
DOMReader
navigates a W3C DOM tree and creates a DOM4J tree
from it.
构造器和说明 |
---|
DOMReader() |
DOMReader(DocumentFactory factory) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
clearNamespaceStack() |
protected Document |
createDocument() |
DocumentFactory |
getDocumentFactory()
DOCUMENT ME!
|
protected Namespace |
getNamespace(String prefix,
String uri) |
Document |
read(Document domDocument) |
protected void |
readElement(Node node,
Branch current) |
protected void |
readTree(Node node,
Branch current) |
void |
setDocumentFactory(DocumentFactory docFactory)
This sets the
DocumentFactory used to create new
documents. |
public DOMReader()
public DOMReader(DocumentFactory factory)
public DocumentFactory getDocumentFactory()
DocumentFactory
used to create document
objectspublic void setDocumentFactory(DocumentFactory docFactory)
This sets the DocumentFactory
used to create new
documents. This method allows the building of custom DOM4J tree objects
to be implemented easily using a custom derivation of
DocumentFactory
docFactory
- DocumentFactory
used to create DOM4J objectsprotected Document createDocument()
protected void clearNamespaceStack()
Copyright © 2005 MetaStuff Ltd. All Rights Reserved. Hosted by