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(java.io.File in)
Create the HierarchicalStreamReader with the stream parser reading from a File.
|
HierarchicalStreamReader |
createReader(java.io.InputStream input)
Create the HierarchicalStreamReader with the stream parser reading from the input stream.
|
HierarchicalStreamReader |
createReader(java.io.Reader reader)
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 output)
Create the HierarchicalStreamWriter with the formatted writer.
|
HierarchicalStreamWriter |
createWriter(java.io.Writer writer)
Create the HierarchicalStreamWriter with the formatted writer.
|
getNameCoderprotected final MappedXMLOutputFactory mof
protected final MappedXMLInputFactory mif
protected final MappedNamespaceConvention convention
protected final boolean useSerializeAsArray
public JettisonMappedXmlDriver()
Note, you should turn off Jettison's root element array wrapper using Jettison 1.4.1 or higher.
public JettisonMappedXmlDriver(Configuration config)
config - the Jettison configurationpublic JettisonMappedXmlDriver(Configuration config,
boolean useSerializeAsArray)
config - the Jettison configuration or null for XStream's defaultsuseSerializeAsArray - flag to use XStream's hints for collections and arrayspublic HierarchicalStreamReader createReader(java.io.Reader reader)
HierarchicalStreamDriverreader - the Reader with the data to parsepublic HierarchicalStreamReader createReader(java.io.InputStream input)
HierarchicalStreamDriverinput - the InputStream with the data to parsepublic HierarchicalStreamReader createReader(java.net.URL in)
AbstractDrivercreateReader in interface HierarchicalStreamDrivercreateReader in class AbstractDriverin - the URL defining the location with the data to parsepublic HierarchicalStreamReader createReader(java.io.File in)
AbstractDrivercreateReader in interface HierarchicalStreamDrivercreateReader in class AbstractDriverin - the URL defining the location with the data to parsepublic HierarchicalStreamWriter createWriter(java.io.Writer writer)
HierarchicalStreamDriverwriter - the Writer to receive the formatted datapublic HierarchicalStreamWriter createWriter(java.io.OutputStream output)
HierarchicalStreamDriveroutput - the OutputStream to receive the formatted dataCopyright © 2004–2024 XStream. All rights reserved.