Package org.springframework.core.codec
Interface Summary Interface Description Decoder<T> Strategy for decoding aDataBuffer
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.Class Summary Class Description AbstractDataBufferDecoder<T> Abstract base class forDecoder
implementations that can decode aDataBuffer
directly to the target element type.AbstractDecoder<T> Abstract base class forDecoder
implementations.AbstractEncoder<T> Abstract base class forDecoder
implementations.AbstractSingleValueEncoder<T> Abstract base class forEncoder
classes that can only deal with a single value.ByteArrayDecoder Decoder forbyte
arrays.ByteArrayEncoder Encoder forbyte
arrays.ByteBufferDecoder Decoder forByteBuffers
.ByteBufferEncoder Encoder forByteBuffers
.CharSequenceEncoder Encode from aCharSequence
stream to a bytes stream.DataBufferDecoder Simple pass-through decoder forDataBuffers
.DataBufferEncoder Simple pass-through encoder forDataBuffers
.Hints Constants and convenience methods for working with hints.ResourceDecoder Decoder forResources
.ResourceEncoder Encoder forResources
.ResourceRegionEncoder Encoder forResourceRegions
.StringDecoder Decode from a data buffer stream to aString
stream, either splitting or aggregating incoming data chunks to realign along newlines delimiters and produce a stream of strings.Exception Summary Exception Description 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.