spring-framework / org.springframework.util / ResizableByteArrayOutputStream / resize

resize

open fun resize(targetCapacity: Int): Unit

Resize the internal buffer size to a specified capacity.

Parameters

targetCapacity - the desired size of the buffer

Exceptions

IllegalArgumentException - if the given capacity is smaller than the actual size of the content stored in the buffer already

See Also
ResizableByteArrayOutputStream#size()