@Override
    public boolean writeToFile(PrintStream stderr, String toWrite, File outFile) {
        FileOutputStream fos = null;
        try {
            fos = new FileOutputStream(outFile);
            fos.write(toWrite.getBytes(Charset.forName("UTF-8")));
            fos.flush();
            return true;
        } catch (FileNotFoundException e) {
            stderr.println(e.getMessage());
        } catch (IOException e) {
            stderr.println(e.getMessage());
        } finally {
            if (fos != null) {
                try {
                    fos.close();
                } catch (IOException e) {
                    // Ignored, can not do anything about this
                }
            }
        }
        return false;
    }
@ Override public boolean writeToFile ( PrintStream stderr , String toWrite , File outFile ) { FileOutputStream fos = null ; try { fos = new FileOutputStream ( outFile ) ; fos . write ( toWrite . getBytes ( Charset . forName ( "UTF-8" ) ) ) ; fos . flush ( ) ; return true ; } catch ( FileNotFoundException e ) { stderr . println ( e . getMessage ( ) ) ; } catch ( IOException e ) { stderr . println ( e . getMessage ( ) ) ; } finally { if ( fos != null ) { try { fos . close ( ) ; } catch ( IOException e ) { } } } return false ; }
{@inheritDoc}