public static String fileToString(final Path file) {
        return fileToString(file, DEFAULT_CHARSET);
    }
Takes a string and writes it to an output stream.
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/StreamUtil.java