spring-framework/spring-web
Patrick Strawderman 7cdacf3083 Introduce toString(Charset) in FastByteArrayOutputStream
This commit introduces a toString() overload in
FastByteArrayOutputStream that accepts a Charset in order to mirror the
method that was introduced in ByteArrayOutputStream in JDK 10,
including a special case for when a single buffer is in use internally
to avoid the need to resize.

This commit also updates getContentAsString() in
ContentCachingRequestWrapper to use this new toString(Charset) method.

Closes gh-31737
2023-12-02 16:31:28 +01:00
..
src Introduce toString(Charset) in FastByteArrayOutputStream 2023-12-02 16:31:28 +01:00
spring-web.gradle Fix ordering of releasing resources in JSON Encoder 2023-11-22 18:21:06 +01:00