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
 java.lang.Object deserialize(java.io.InputStream input)
          Deserialize an object from a stream.
 void serialize(java.lang.Object object, java.io.OutputStream output)
          Serialize an object to a stream.
 

Method Detail

serialize

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

Throws:
java.lang.Exception

deserialize

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

Throws:
java.lang.Exception


Copyright © 2004-2007 XStream. All Rights Reserved.