public synchronized String toString(final Charset charset) {
            return new String(buf, 0, count, charset);
        }
A wrapper on ByteArrayOutputStream to add direct use of charset without
charset name.
stroom-util/src/main/java/stroom/util/io/StreamUtil.java