StringOutputStream backed by ByteArrayOutputStream

The other day I needed to read output stream directly into a string, but JDK does not provides us with a stream directly for that. There have been numerous discussions on why and why not we should have this build into the JDK, but this was a case where I did need it and knew …

StringOutputStream backed by ByteArrayOutputStream Read More »