public class ByteArrayDecoder extends AbstractDataBufferDecoder<byte[]>
byte arrays.| 构造器和说明 |
|---|
ByteArrayDecoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canDecode(ResolvableType elementType,
MimeType mimeType)
Whether the decoder supports the given target element type and the MIME
type of the source stream.
|
protected byte[] |
decodeDataBuffer(DataBuffer dataBuffer,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints)
How to decode a
DataBuffer to the target element type. |
decode, decodeToMonogetDecodableMimeTypespublic boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType)
DecodercanDecode 在接口中 Decoder<byte[]>canDecode 在类中 AbstractDecoder<byte[]>elementType - the target element type for the output streammimeType - the mime type associated with the stream to decode
(can be null if not specified)true if supported, false otherwiseprotected byte[] decodeDataBuffer(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String,Object> hints)
AbstractDataBufferDecoderDataBuffer to the target element type.decodeDataBuffer 在类中 AbstractDataBufferDecoder<byte[]>