Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use InputStream#transferTo instead of readAllBytes (#6477)
InputStream#transferTo has been available since Java 9 and provides a built in method to drain an InputStream to an OutputStream without requiring loading the entire contents of the stream into memory. Signed-off-by: Andrew Ross <[email protected]>
- Loading branch information