public class Dom4JDriver extends AbstractXmlDriver
Constructor and Description |
---|
Dom4JDriver() |
Dom4JDriver(DocumentFactory documentFactory,
OutputFormat outputFormat) |
Dom4JDriver(DocumentFactory documentFactory,
OutputFormat outputFormat,
NameCoder nameCoder) |
Dom4JDriver(DocumentFactory documentFactory,
OutputFormat outputFormat,
XmlFriendlyReplacer replacer)
Deprecated.
As of 1.4, use
Dom4JDriver(DocumentFactory, OutputFormat, NameCoder) instead. |
Dom4JDriver(NameCoder nameCoder) |
Modifier and Type | Method and Description |
---|---|
protected SAXReader |
createReader()
Create and initialize the SAX reader.
|
HierarchicalStreamReader |
createReader(java.io.File in)
Create the HierarchicalStreamReader with the stream parser reading from a File.
|
HierarchicalStreamReader |
createReader(java.io.InputStream in)
Create the HierarchicalStreamReader with the stream parser reading from the input stream.
|
HierarchicalStreamReader |
createReader(java.io.Reader text)
Create the HierarchicalStreamReader with the stream parser reading from the IO reader.
|
HierarchicalStreamReader |
createReader(java.net.URL in)
Create the HierarchicalStreamReader with the stream parser reading from a URL.
|
HierarchicalStreamWriter |
createWriter(java.io.OutputStream out)
Create the HierarchicalStreamWriter with the formatted writer.
|
HierarchicalStreamWriter |
createWriter(java.io.Writer out)
Create the HierarchicalStreamWriter with the formatted writer.
|
DocumentFactory |
getDocumentFactory() |
OutputFormat |
getOutputFormat() |
void |
setDocumentFactory(DocumentFactory documentFactory) |
void |
setOutputFormat(OutputFormat outputFormat) |
xmlFriendlyReplacer
getNameCoder
public Dom4JDriver()
public Dom4JDriver(NameCoder nameCoder)
public Dom4JDriver(DocumentFactory documentFactory, OutputFormat outputFormat)
public Dom4JDriver(DocumentFactory documentFactory, OutputFormat outputFormat, NameCoder nameCoder)
public Dom4JDriver(DocumentFactory documentFactory, OutputFormat outputFormat, XmlFriendlyReplacer replacer)
Dom4JDriver(DocumentFactory, OutputFormat, NameCoder)
instead.public DocumentFactory getDocumentFactory()
public void setDocumentFactory(DocumentFactory documentFactory)
public OutputFormat getOutputFormat()
public void setOutputFormat(OutputFormat outputFormat)
public HierarchicalStreamReader createReader(java.io.Reader text)
HierarchicalStreamDriver
text
- the Reader
with the data to parsepublic HierarchicalStreamReader createReader(java.io.InputStream in)
HierarchicalStreamDriver
in
- the InputStream
with the data to parsepublic HierarchicalStreamReader createReader(java.net.URL in)
AbstractDriver
createReader
in interface HierarchicalStreamDriver
createReader
in class AbstractDriver
in
- the URL
defining the location with the data to parsepublic HierarchicalStreamReader createReader(java.io.File in)
AbstractDriver
createReader
in interface HierarchicalStreamDriver
createReader
in class AbstractDriver
in
- the URL
defining the location with the data to parsepublic HierarchicalStreamWriter createWriter(java.io.Writer out)
HierarchicalStreamDriver
out
- the Writer
to receive the formatted datapublic HierarchicalStreamWriter createWriter(java.io.OutputStream out)
HierarchicalStreamDriver
out
- the OutputStream
to receive the formatted dataprotected SAXReader createReader() throws DocumentException
DocumentException
- if DOCTYPE processing cannot be disabledCopyright © 2004–2024 XStream. All rights reserved.