org.springframework.commons.serializer.java
Class JavaStreamingConverter
java.lang.Object
org.springframework.commons.serializer.java.JavaStreamingConverter
- All Implemented Interfaces:
- InputStreamingConverter<Object>, OutputStreamingConverter<Object>
public class JavaStreamingConverter
- extends Object
- implements InputStreamingConverter<Object>, OutputStreamingConverter<Object>
Converter that implements both input and output streaming using Java
Serialization.
- Since:
- 2.0
- Author:
- Gary Russell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaStreamingConverter
public JavaStreamingConverter()
convert
public Object convert(InputStream inputStream)
throws IOException
- Description copied from interface:
InputStreamingConverter
- Read (assemble an object of type T) from an InputStream.
- Specified by:
convert
in interface InputStreamingConverter<Object>
- Parameters:
inputStream
- The InputStream.
- Returns:
- The object.
- Throws:
IOException
convert
public void convert(Object object,
OutputStream outputStream)
throws IOException
- Description copied from interface:
OutputStreamingConverter
- Write an object of type T to the outputSream.
- Specified by:
convert
in interface OutputStreamingConverter<Object>
- Parameters:
object
- The object.outputStream
- The outputStream.
- Throws:
IOException
Copyright © 2010. All Rights Reserved.