GROOVY-6314 ResourceGroovyMethods uses BufferedWriter/BufferedOutputStre...

...am