# Package org.springframework.core.codec

@NonNullApi @NonNullFields package org.springframework.core.codec
`Encoder` and `Decoder` abstractions to convert between a reactive stream of bytes and Java objects.

Related Packages
Package
Description
org.springframework.core
Provides basic classes for exception handling and version detection, and other core helpers that are not specific to any part of the framework.
Class
Description
AbstractCharSequenceDecoder<T extends CharSequence>
Abstract base class that decodes from a data buffer stream to a `CharSequence` stream.
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 `Encoder` 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 `ByteBuffers`.
ByteBufferEncoder
Encoder for `ByteBuffers`.
CharBufferDecoder
Decode from a data buffer stream to a `CharBuffer` stream, either splitting or aggregating incoming data chunks to realign along newlines delimiters and produce a stream of char buffers.
CharSequenceEncoder
Encode from a `CharSequence` stream to a bytes stream.
CodecException
General error that indicates a problem while encoding and decoding to and from an Object stream.
DataBufferDecoder
Simple pass-through decoder for `DataBuffers`.
DataBufferEncoder
Simple pass-through encoder for `DataBuffers`.
Decoder<T>
Strategy for decoding a `DataBuffer` input stream into an output stream of elements of type `<T>`.
DecodingException
Indicates an issue with decoding the input stream with a focus on content related issues such as a parse failure.
Encoder<T>
Strategy to encode a stream of Objects of type `<T>` into an output stream of bytes.
EncodingException
Indicates an issue with encoding the input Object stream with a focus on not being able to encode Objects.
Hints
Constants and convenience methods for working with hints.
Netty5BufferDecoder
Deprecated, for removal: This API element is subject to removal in a future version.
as of 6.2.18 with no replacement
Netty5BufferEncoder
Deprecated, for removal: This API element is subject to removal in a future version.
as of 6.2.18 with no replacement
NettyByteBufDecoder
Decoder for `ByteBufs`.
NettyByteBufEncoder
Encoder for `ByteBufs`.
ResourceDecoder
Decoder for `Resources`.
ResourceEncoder
Encoder for `Resources`.
ResourceRegionEncoder
Encoder for `ResourceRegions`.
StringDecoder
Decode from a data buffer stream to a `String` stream, either splitting or aggregating incoming data chunks to realign along newlines delimiters and produce a stream of strings.