public static void copyStream(Reader inStream, Writer outStream, boolean ignoreErrors)
    {
        char[] data = new char[BUFFER];
        int count;
        try {
            while((count = inStream.read(data, 0, BUFFER)) != -1)
            {
                outStream.write(data, 0, count);
            }
        } catch (IOException e) {
            if (!ignoreErrors)
                e.printStackTrace();
        }
    }
public static void copyStream ( Reader inStream , Writer outStream , boolean ignoreErrors ) { char [ ] data = new char [ BUFFER ] ; int count ; try { while ( ( count = inStream . read ( data , 0 , BUFFER ) ) != - 1 ) { outStream . write ( data , 0 , count ) ; } } catch ( IOException e ) { if ( ! ignoreErrors ) e . printStackTrace ( ) ; } }
Copy the input stream to the output stream
@param inStream
@param outStream
@param ignoreErrors