public class XStreamDriver extends Object implements Product
XStream,
Product,
HierarchicalStreamDriver| Constructor and Description |
|---|
XStreamDriver(HierarchicalStreamDriver driver,
String desc)
Create a XStream product based on a driver.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(InputStream input)
Deserialize an object from a stream.
|
void |
serialize(Object object,
OutputStream output)
Serialize an object to a stream.
|
String |
toString() |
public XStreamDriver(HierarchicalStreamDriver driver, String desc)
driver - the driver to use for serialization/deserializationdesc - the driver descriptionpublic void serialize(Object object, OutputStream output) throws Exception
Productpublic Object deserialize(InputStream input) throws Exception
Productdeserialize in interface ProductExceptionCopyright © 2004–2014 XStream. All rights reserved.