I20211104-1800
Use try-with-resources to manage Input/Output streams, and use StringWriter instead of ByteArrayOutputStream when the result is used as String Change-Id: I013f5d47ae19cd1c8def7462dbcd7c7820efc4fb Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/186794 Tested-by: JDT Bot <jdt-bot@eclipse.org> Reviewed-by: Andrey Loskutov <loskutov@gmx.de>