public class InputStreamToByteArrayConverter extends Object implements ContentTypeConverter<InputStream,byte[]>
Constructor and Description |
---|
InputStreamToByteArrayConverter() |
Modifier and Type | Method and Description |
---|---|
byte[] |
convert(InputStream original)
Converts the given object into another.
|
Class<InputStream> |
expectedSourceType()
The expected type of input data.
|
Class<byte[]> |
targetType()
The returned type of IntermediateRepresentation
|
public Class<InputStream> expectedSourceType()
ContentTypeConverter
expectedSourceType
in interface ContentTypeConverter<InputStream,byte[]>
public Class<byte[]> targetType()
ContentTypeConverter
targetType
in interface ContentTypeConverter<InputStream,byte[]>
public byte[] convert(InputStream original)
ContentTypeConverter
SerializedObject
instance.convert
in interface ContentTypeConverter<InputStream,byte[]>
original
- the value to convertCopyright © 2010–2024. All rights reserved.