Browse Source
Update StreamUtils.drain to use InputStream.transferTo with a null OutputStream. This avoids allocating buffers for cases where the supplied InputStream has an optimized transferTo method (e.g., ByteArrayInputStream and FileInputStream). Additionally, update StreamUtils.emptyInput to simply call InputStream.nullInputStream. Closes gh-28961pull/29136/head
2 changed files with 9 additions and 13 deletions
Loading…
Reference in new issue