net.sf.staccatocommons.io.serialization
Class ObjectStreamByteSerializationManager
java.lang.Object
net.sf.staccatocommons.io.serialization.AbstractByteSerializationManager
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectStreamByteSerializationManager
public ObjectStreamByteSerializationManager()
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.