com.thoughtworks.xstream.tools.benchmark.products
Class JavaObjectSerialization

java.lang.Object
  extended bycom.thoughtworks.xstream.tools.benchmark.products.JavaObjectSerialization
All Implemented Interfaces:
Product

public class JavaObjectSerialization
extends java.lang.Object
implements Product

Standard Java Object Serialization product.

Author:
Joe Walnes
See Also:
Harness, Product, ObjectOutputStream, ObjectInputStream

Constructor Summary
JavaObjectSerialization()
           
 
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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaObjectSerialization

public JavaObjectSerialization()
Method Detail

serialize

public void serialize(java.lang.Object object,
                      java.io.OutputStream output)
               throws java.lang.Exception
Description copied from interface: Product
Serialize an object to a stream.

Specified by:
serialize in interface Product
Throws:
java.lang.Exception

deserialize

public java.lang.Object deserialize(java.io.InputStream input)
                             throws java.lang.Exception
Description copied from interface: Product
Deserialize an object from a stream.

Specified by:
deserialize in interface Product
Throws:
java.lang.Exception

toString

public java.lang.String toString()


Copyright © 2004-2007 XStream. All Rights Reserved.