org.springframework.core.codec

## 类 ByteArrayDecoder

- java.lang.Object
- - org.springframework.core.codec.AbstractDecoder<T>
  - - org.springframework.core.codec.AbstractDataBufferDecoder<byte[]>
    - - org.springframework.core.codec.ByteArrayDecoder

- 所有已实现的接口:
    Decoder<byte[]>

      public class ByteArrayDecoder
      extends AbstractDataBufferDecoder<byte[]>

  Decoder for `byte` arrays.
  从以下版本开始:
    5.0
  作者:
    Arjen Poutsma, Rossen Stoyanchev

- - ### 构造器概要

    构造器
    构造器和说明
    `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.

    - ### 从类继承的方法 org.springframework.core.codec.AbstractDataBufferDecoder

      `decode, decodeToMono`

    - ### 从类继承的方法 org.springframework.core.codec.AbstractDecoder

      `getDecodableMimeTypes`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### ByteArrayDecoder

          public ByteArrayDecoder()

  - ### 方法详细资料

    - #### canDecode

          public boolean canDecode(ResolvableType elementType,
                                   @Nullable
                                   MimeType mimeType)

      从接口复制的说明: `Decoder`
      Whether the decoder supports the given target element type and the MIME type of the source stream.
      指定者:
        `canDecode` 在接口中 `Decoder<byte[]>`
      覆盖:
        `canDecode` 在类中 `AbstractDecoder<byte[]>`
      参数:
        `elementType` - the target element type for the output stream
        `mimeType` - the mime type associated with the stream to decode (can be `null` if not specified)
      返回:
        `true` if supported, `false` otherwise

    - #### decodeDataBuffer

          protected byte[] decodeDataBuffer(DataBuffer dataBuffer,
                                            ResolvableType elementType,
                                            @Nullable
                                            MimeType mimeType,
                                            @Nullable
                                            Map<String,Object> hints)

      从类复制的说明: `AbstractDataBufferDecoder`
      How to decode a `DataBuffer` to the target element type.
      指定者:
        `decodeDataBuffer` 在类中 `AbstractDataBufferDecoder<byte[]>`