@NonNullApi @NonNullFields

# 程序包 org.springframework.core.codec

`Encoder` and `Decoder` abstractions to convert between a reactive stream of bytes and Java objects.

请参阅: 说明

- 接口概要
  接口 | 说明
  --- | ---
  Decoder<T> | Strategy for decoding a `DataBuffer` input stream into an output stream of elements of type `<T>`.
  Encoder<T> | Strategy to encode a stream of Objects of type `<T>` into an output stream of bytes.

- 类概要
  类 | 说明
  --- | ---
  AbstractDataBufferDecoder<T> | Abstract base class for `Decoder` implementations that can decode a `DataBuffer` directly to the target element type.
  AbstractDecoder<T> | Abstract base class for `Decoder` implementations.
  AbstractEncoder<T> | Abstract base class for `Decoder` implementations.
  AbstractSingleValueEncoder<T> | Abstract base class for `Encoder` classes that can only deal with a single value.
  ByteArrayDecoder | Decoder for `byte` arrays.
  ByteArrayEncoder | Encoder for `byte` arrays.
  ByteBufferDecoder | Decoder for `ByteBuffer`s.
  ByteBufferEncoder | Encoder for `ByteBuffer`s.
  CharSequenceEncoder | Encode from a `CharSequence` stream to a bytes stream.
  DataBufferDecoder | Simple pass-through decoder for `DataBuffer`s.
  DataBufferEncoder | Simple pass-through encoder for `DataBuffer`s.
  ResourceDecoder | Decoder for `Resource`s.
  ResourceEncoder | Encoder for `Resource`s.
  ResourceRegionEncoder | Encoder for `ResourceRegion`s.
  StringDecoder | Decode from a data buffer stream to a `String` stream.

- 异常错误概要
  异常错误 | 说明
  --- | ---
  CodecException | General error that indicates a problem while encoding and decoding to and from an Object stream.
  DecodingException | Indicates an issue with decoding the input stream with a focus on content related issues such as a parse failure.
  EncodingException | Indicates an issue with encoding the input Object stream with a focus on not being able to encode Objects.

## 程序包org.springframework.core.codec的说明

`Encoder` and `Decoder` abstractions to convert between a reactive stream of bytes and Java objects.