|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.io.AbstractDriver
com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver
public class JettisonMappedXmlDriver
Simple XStream driver wrapping Jettison's Mapped reader and writer. Serializes object from and to JSON.
Constructor Summary | |
---|---|
JettisonMappedXmlDriver()
Construct a JettisonMappedXmlDriver. |
|
JettisonMappedXmlDriver(org.codehaus.jettison.mapped.Configuration config)
Construct a JettisonMappedXmlDriver with configuration. |
|
JettisonMappedXmlDriver(org.codehaus.jettison.mapped.Configuration config,
boolean useSerializeAsArray)
Construct a JettisonMappedXmlDriver with configuration. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.thoughtworks.xstream.io.AbstractDriver |
---|
getNameCoder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JettisonMappedXmlDriver()
public JettisonMappedXmlDriver(org.codehaus.jettison.mapped.Configuration config)
config
- the Jettison configurationpublic JettisonMappedXmlDriver(org.codehaus.jettison.mapped.Configuration config, boolean useSerializeAsArray)
config
- the Jettison configurationuseSerializeAsArray
- flag to use XStream's hints for collections and arraysMethod Detail |
---|
public HierarchicalStreamReader createReader(Reader reader)
HierarchicalStreamDriver
reader
- the Reader
with the data to parse
public 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 parse
public HierarchicalStreamReader createReader(File in)
AbstractDriver
createReader
in interface HierarchicalStreamDriver
createReader
in class AbstractDriver
in
- the URL
defining the location with the data to parse
public HierarchicalStreamWriter createWriter(Writer writer)
HierarchicalStreamDriver
writer
- the Writer
to receive the formatted data
public HierarchicalStreamWriter createWriter(OutputStream output)
HierarchicalStreamDriver
output
- the OutputStream
to receive the formatted data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |