src/main/java/org/organicelement/deployment/model/utils/StreamUtils.java
public static void copyReaderToStream(Reader in, OutputStream out,
            String encoding, boolean close) throws IOException {
        OutputStreamWriter writer = new OutputStreamWriter(out, encoding);
        copyReaderToWriter(in, writer, close);
    }
/**
     * Copies the content of the Reader to the provided OutputStream using the
     * provided encoding.
     * @param in The character data to convert.
     * @param out The OutputStream to send the data to.
     * @param encoding The character encoding that should be used for the byte
     *        stream.
     * @param close true if the Reader and OutputStream should be closed after
     *        the completion.
     * @throws IOException If an underlying I/O Exception occurs.
     */
Copies the content of the Reader to the provided OutputStream using the
provided encoding.
@param in The character data to convert.
@param out The OutputStream to send the data to.
@param encoding The character encoding that should be used for the byte
stream.
@param close true if the Reader and OutputStream should be closed after
the completion.
@throws IOException If an underlying I/O Exception occurs.
Copies the content of the Reader to the provided OutputStream using the provided encoding . @param in The character data to convert . @param out The OutputStream to send the data to . @param encoding The character encoding that should be used for the byte stream . @param close true if the Reader and OutputStream should be closed after the completion . @throws IOException If an underlying I / O Exception occurs .
public static void copyReaderToStream(Reader in, OutputStream out,
            String encoding, boolean close) throws IOException {
        OutputStreamWriter writer = new OutputStreamWriter(out, encoding);
        copyReaderToWriter(in, writer, close);
    }
public static void copyReaderToStream ( Reader in , OutputStream out , String encoding , boolean close ) throws IOException { OutputStreamWriter writer = new OutputStreamWriter ( out , encoding ) ; copyReaderToWriter ( in , writer , close ) ; }
Copies the content of the Reader to the provided OutputStream using the
 provided encoding.
Copies the content of the Reader to the provided OutputStream using the provided encoding .