public class JettisonMappedXmlDriver extends AbstractDriver
Modifier and Type | Field and Description |
---|---|
protected MappedNamespaceConvention |
convention |
protected MappedXMLInputFactory |
mif |
protected MappedXMLOutputFactory |
mof |
protected boolean |
useSerializeAsArray |
Constructor and Description |
---|
JettisonMappedXmlDriver()
Construct a JettisonMappedXmlDriver.
|
JettisonMappedXmlDriver(Configuration config)
Construct a JettisonMappedXmlDriver with configuration.
|
JettisonMappedXmlDriver(Configuration config,
boolean useSerializeAsArray)
Construct a JettisonMappedXmlDriver with configuration.
|
Modifier and Type | Method and Description |
---|---|
HierarchicalStreamReader |
createReader(File in)
Create the HierarchicalStreamReader with the stream parser reading from a File.
|
HierarchicalStreamReader |
createReader(InputStream input)
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 output)
Create the HierarchicalStreamWriter with the formatted writer.
|
HierarchicalStreamWriter |
createWriter(Writer writer)
Create the HierarchicalStreamWriter with the formatted writer.
|
getNameCoder
protected final MappedXMLOutputFactory mof
protected final MappedXMLInputFactory mif
protected final MappedNamespaceConvention convention
protected final boolean useSerializeAsArray
public JettisonMappedXmlDriver()
public JettisonMappedXmlDriver(Configuration config)
config
- the Jettison configurationpublic JettisonMappedXmlDriver(Configuration config, boolean useSerializeAsArray)
config
- the Jettison configurationuseSerializeAsArray
- flag to use XStream's hints for collections and arrayspublic HierarchicalStreamReader createReader(Reader reader)
HierarchicalStreamDriver
reader
- the Reader
with the data to parsepublic HierarchicalStreamReader createReader(InputStream input)
HierarchicalStreamDriver
input
- 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 writer)
HierarchicalStreamDriver
writer
- the Writer
to receive the formatted datapublic HierarchicalStreamWriter createWriter(OutputStream output)
HierarchicalStreamDriver
output
- the OutputStream
to receive the formatted dataCopyright © 2004–2017 XStream. All rights reserved.