class OutputWriterHelper {

    static void copyToStream(File file, OutputStream out) throws IOException {
        try (InputStream in = new FileInputStream(file)) {
            IOUtils.copy(in, out);
        } finally {
            delete(file);
        }
    }

    private  OutputWriterHelper();

}