src/main/java/org/organicelement/deployment/model/utils/StreamUtils.java
public static void copyStreamToWriter(InputStream in, Writer out,
            String encoding, boolean close) throws IOException {
        InputStreamReader reader = new InputStreamReader(in, encoding);
        copyReaderToWriter(reader, out, close);
    }
/**
     * Copies an InputStream to a Writer.
     * @param in The input byte stream of data.
     * @param out The Writer to receive the streamed data as characters.
     * @param encoding The encoding used in 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 an InputStream to a Writer.
@param in The input byte stream of data.
@param out The Writer to receive the streamed data as characters.
@param encoding The encoding used in 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 an InputStream to a Writer . @param in The input byte stream of data . @param out The Writer to receive the streamed data as characters . @param encoding The encoding used in 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 copyStreamToWriter(InputStream in, Writer out,
            String encoding, boolean close) throws IOException {
        InputStreamReader reader = new InputStreamReader(in, encoding);
        copyReaderToWriter(reader, out, close);
    }
public static void copyStreamToWriter ( InputStream in , Writer out , String encoding , boolean close ) throws IOException { InputStreamReader reader = new InputStreamReader ( in , encoding ) ; copyReaderToWriter ( reader , out , close ) ; }
Copies an InputStream to a Writer.
Copies an InputStream to a Writer .