public class JDom2Driver extends AbstractDriver
Constructor and Description |
---|
JDom2Driver() |
JDom2Driver(NameCoder nameCoder) |
Modifier and Type | Method and Description |
---|---|
protected SAXBuilder |
createBuilder()
Create and initialize the SAX builder.
|
HierarchicalStreamReader |
createReader(File in)
Create the HierarchicalStreamReader with the stream parser reading from a File.
|
HierarchicalStreamReader |
createReader(InputStream in)
Create the HierarchicalStreamReader with the stream parser reading from the input stream.
|
HierarchicalStreamReader |
createReader(Reader reader)
Create the HierarchicalStreamReader with the stream parser reading from the IO reader.
|
HierarchicalStreamReader |
createReader(URL in)
Create the HierarchicalStreamReader with the stream parser reading from a URL.
|
HierarchicalStreamWriter |
createWriter(OutputStream out)
Create the HierarchicalStreamWriter with the formatted writer.
|
HierarchicalStreamWriter |
createWriter(Writer out)
Create the HierarchicalStreamWriter with the formatted writer.
|
getNameCoder
public JDom2Driver()
public JDom2Driver(NameCoder nameCoder)
public HierarchicalStreamReader createReader(Reader reader)
HierarchicalStreamDriver
reader
- the Reader
with the data to parsepublic HierarchicalStreamReader createReader(InputStream in)
HierarchicalStreamDriver
in
- the InputStream
with the data to parsepublic HierarchicalStreamReader createReader(URL in)
AbstractDriver
createReader
in interface HierarchicalStreamDriver
createReader
in class AbstractDriver
in
- the URL
defining the location with the data to parsepublic HierarchicalStreamReader createReader(File in)
AbstractDriver
createReader
in interface HierarchicalStreamDriver
createReader
in class AbstractDriver
in
- the URL
defining the location with the data to parsepublic HierarchicalStreamWriter createWriter(Writer out)
HierarchicalStreamDriver
out
- the Writer
to receive the formatted datapublic HierarchicalStreamWriter createWriter(OutputStream out)
HierarchicalStreamDriver
out
- the OutputStream
to receive the formatted dataprotected SAXBuilder createBuilder()
Copyright © 2004–2017 XStream. All rights reserved.