Spring Integration

org.springframework.commons.serializer.java
Class JavaStreamingConverter

java.lang.Object
  extended by 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

Constructor Summary
JavaStreamingConverter()
           
 
Method Summary
 Object convert(InputStream inputStream)
          Read (assemble an object of type T) from an InputStream.
 void convert(Object object, OutputStream outputStream)
          Write an object of type T to the outputSream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaStreamingConverter

public JavaStreamingConverter()
Method Detail

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

Spring Integration

Copyright © 2010. All Rights Reserved.