net.sf.staccatocommons.io.serialization
Class ObjectStreamByteSerializationManager

java.lang.Object
  extended by net.sf.staccatocommons.io.serialization.AbstractByteSerializationManager
      extended by net.sf.staccatocommons.io.serialization.ObjectStreamByteSerializationManager
All Implemented Interfaces:
SerializationManager

public class ObjectStreamByteSerializationManager
extends AbstractByteSerializationManager

Implementation of ByteSerializationManager that uses standard Java serialization API based on ObjectInputStreams and ObjectOutputStreams

Author:
flbulgarelli

Constructor Summary
ObjectStreamByteSerializationManager()
           
 
Method Summary
<T> T
deserialize(InputStream inputStream)
          This method does not close the inputStream
 void serialize(Object target, OutputStream outputStream)
          Writes the given target object to the given outputStream.
 
Methods inherited from class net.sf.staccatocommons.io.serialization.AbstractByteSerializationManager
deserialize, serialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectStreamByteSerializationManager

public ObjectStreamByteSerializationManager()
Method Detail

deserialize

public <T> T deserialize(InputStream inputStream)
              throws org.apache.commons.lang.SerializationException
Description copied from interface: SerializationManager
This method does not close the inputStream

Returns:
Throws:
org.apache.commons.lang.SerializationException

serialize

public void serialize(Object target,
                      OutputStream outputStream)
               throws org.apache.commons.lang.SerializationException
Description copied from interface: SerializationManager
Writes the given target object to the given outputStream. This method does not close the outputStream

Throws:
org.apache.commons.lang.SerializationException


Copyright © 2010-2012 StaccatoCommons. All Rights Reserved.