public class StreamToByteArrayConverter extends Object implements StreamToValueConverterSPI<byte[]>
Constructor and Description |
---|
StreamToByteArrayConverter() |
Modifier and Type | Method and Description |
---|---|
Class<byte[]> |
getPojoClass()
The class of objects which this builder can construct from a stream
|
byte[] |
renderFrom(InputStream stream,
ReferencedDataNature dataNature,
String charset)
Render the stream to the target object type
|
public Class<byte[]> getPojoClass()
StreamToValueConverterSPI
getPojoClass
in interface StreamToValueConverterSPI<byte[]>
public byte[] renderFrom(InputStream stream, ReferencedDataNature dataNature, String charset)
StreamToValueConverterSPI
renderFrom
in interface StreamToValueConverterSPI<byte[]>
stream
- input stream of data to render to the object; the caller will
close itCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.