org.axonframework.serializer.converters
Class BlobToInputStreamConverter

java.lang.Object
  extended by org.axonframework.serializer.AbstractContentTypeConverter<Blob,InputStream>
      extended by org.axonframework.serializer.converters.BlobToInputStreamConverter
All Implemented Interfaces:
ContentTypeConverter<Blob,InputStream>

public class BlobToInputStreamConverter
extends AbstractContentTypeConverter<Blob,InputStream>

Author:
Allard Buijze

Constructor Summary
BlobToInputStreamConverter()
           
 
Method Summary
 InputStream convert(Blob original)
          Converts the given object into another.
 Class<Blob> expectedSourceType()
          The expected type of input data.
 Class<InputStream> targetType()
          The returned type of IntermediateRepresentation
 
Methods inherited from class org.axonframework.serializer.AbstractContentTypeConverter
convert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobToInputStreamConverter

public BlobToInputStreamConverter()
Method Detail

expectedSourceType

public Class<Blob> expectedSourceType()
Description copied from interface: ContentTypeConverter
The expected type of input data.

Returns:
the expected data format in IntermediateRepresentation

targetType

public Class<InputStream> targetType()
Description copied from interface: ContentTypeConverter
The returned type of IntermediateRepresentation

Returns:
the output data format in IntermediateRepresentation

convert

public InputStream convert(Blob original)
Description copied from interface: ContentTypeConverter
Converts the given object into another. Typically, these values are contained by a SerializedObject instance.

Parameters:
original - the value to convert
Returns:
the converted value


Copyright © 2010-2016. All Rights Reserved.