getEncodingDecoder abstract method

  1. @protected
EncodingDecoder getEncodingDecoder()

Returns the EncodingDecoder used to decode byte content into strings.

This is typically used when reading multipart form data or request bodies where character encoding may vary. Implementations should provide the decoder that respects the charset of the part or request.

Example

final decoder = multipart.getEncodingDecoder();
final text = decoder.decode(byteArray);

Implementation

@protected
EncodingDecoder getEncodingDecoder();