org.axonframework.serializer.converters
Class ByteArrayToInputStreamConverter
java.lang.Object
org.axonframework.serializer.AbstractContentTypeConverter<byte[],InputStream>
org.axonframework.serializer.converters.ByteArrayToInputStreamConverter
- All Implemented Interfaces:
- ContentTypeConverter<byte[],InputStream>
public class ByteArrayToInputStreamConverter
- extends AbstractContentTypeConverter<byte[],InputStream>
ContentTypeConverter that converts byte arrays into InputStream. More specifically, it returns an
ByteArrayInputStream with the underlying byte[] is backing data.
- Since:
- 2.0
- Author:
- Allard Buijze
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayToInputStreamConverter
public ByteArrayToInputStreamConverter()
expectedSourceType
public Class<byte[]> 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(byte[] 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.