com.thoughtworks.xstream.tools.benchmark
Interface Product

All Known Implementing Classes:
JavaObjectSerialization, XStreamBinary, XStreamCompact, XStreamDom, XStreamStax, XStreamXpp

public interface Product

Provides an abstraction above the product used to perform the serialization/deserialization in the benchmarks.

Author:
Joe Walnes
See Also:
Harness

Method Summary
 Object deserialize(InputStream input)
          Deserialize an object from a stream.
 void serialize(Object object, OutputStream output)
          Serialize an object to a stream.
 

Method Detail

serialize

public void serialize(Object object,
                      OutputStream output)
               throws Exception
Serialize an object to a stream.

Throws:
Exception

deserialize

public Object deserialize(InputStream input)
                   throws Exception
Deserialize an object from a stream.

Throws:
Exception


Copyright © 2004-2007 XStream. All Rights Reserved.