Top Description Interfaces Classes
module spring.core

Package org.springframework.core.codec

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

org.springframework.core.codec.Encoder and org.springframework.core.codec.Decoder abstractions to convert between a reactive stream of bytes and Java objects.

Interface Summary

Modifier and TypeInterface and Description
public interface
Decoder<
the type of elements in the output stream
T
>

Strategy for decoding a DataBuffer input stream into an output stream of elements of type <T>.

public interface
Encoder<
the type of elements in the input stream
T
>

Strategy to encode a stream of Objects of type <T> into an output stream of bytes.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractCharSequenceDecoder<
the character sequence type
T extends CharSequence
>

Abstract base class that decodes from a data buffer stream to a CharSequence stream.

public abstract class
AbstractDataBufferDecoder<
the element type
T
>

Abstract base class for Decoder implementations that can decode a DataBuffer directly to the target element type.

public abstract class
AbstractDecoder<
the element type
T
>

Abstract base class for Decoder implementations.

public abstract class
AbstractEncoder<
the element type
T
>

Abstract base class for Encoder implementations.

public abstract class
AbstractSingleValueEncoder<
the element type
T
>

Abstract base class for org.springframework.core.codec.Encoder classes that can only deal with a single value.

public class
ByteArrayDecoder

Decoder for byte arrays.

public class
ByteArrayEncoder

Encoder for byte arrays.

public class
public class
public class
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.

public class
CharSequenceEncoder

Encode from a CharSequence stream to a bytes stream.

public class
CodecException

General error that indicates a problem while encoding and decoding to and from an Object stream.

public class
DataBufferDecoder

Simple pass-through decoder for DataBuffers.

public class
DataBufferEncoder

Simple pass-through encoder for DataBuffers.

public class
DecodingException

Indicates an issue with decoding the input stream with a focus on content related issues such as a parse failure.

public class
EncodingException

Indicates an issue with encoding the input Object stream with a focus on not being able to encode Objects.

public abstract class
Hints

Constants and convenience methods for working with hints.

public class
public class
public class
public class
public class
public class
public class
public class
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.