Invokes the closure for each subdirectory whose name (dir.name) matches the given nameFilter in the given directory
- calling the DefaultGroovyMethods#isCase(java.lang.Object, java.lang.Object) method to determine if a match occurs.
Invokes the closure for each file whose name (file.name) matches the given nameFilter in the given directory
- calling the org.codehaus.groovy.runtime.DefaultGroovyMethods#isCase(Object, Object) method to determine if a match occurs.
This class defines new groovy methods for Readers, Writers, InputStreams and
OutputStreams which appear on normal JDK classes inside the Groovy environment.
Create a new BufferedReader for this file using the specified charset and then
passes it into the closure, ensuring the reader is closed after the
closure returns.