- eachByte(java.nio.file.Path, int, groovy.lang.Closure) - Method in NioExtensions
-
Traverse through the bytes of this Path, bufferLen bytes at a time.
- eachByte(java.nio.file.Path, int, groovy.lang.Closure) - Method in NioGroovyMethods
-
Traverse through the bytes of this Path, bufferLen bytes at a time.
- eachDir(java.nio.file.Path, groovy.lang.Closure) - Method in NioExtensions
-
Invokes the closure for each subdirectory in this directory,
ignoring regular files.
- eachDir(java.nio.file.Path, groovy.lang.Closure) - Method in NioGroovyMethods
-
Invokes the closure for each subdirectory in this directory,
ignoring regular files.
- eachDirMatch(java.nio.file.Path, java.lang.Object, groovy.lang.Closure) - Method in NioExtensions
-
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.
- eachDirMatch(java.nio.file.Path, java.lang.Object, groovy.lang.Closure) - Method in NioGroovyMethods
-
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.
- eachDirRecurse(java.nio.file.Path, groovy.lang.Closure) - Method in NioExtensions
-
Recursively processes each descendant subdirectory in this directory.
- eachDirRecurse(java.nio.file.Path, groovy.lang.Closure) - Method in NioGroovyMethods
-
Recursively processes each descendant subdirectory in this directory.
- eachFile(java.nio.file.Path, groovy.lang.Closure) - Method in NioExtensions
-
Invokes the closure for each 'child' file in this 'parent' folder/directory.
- eachFile(java.nio.file.Path, groovy.lang.Closure) - Method in NioGroovyMethods
-
Invokes the closure for each 'child' file in this 'parent' folder/directory.
- eachFileMatch(java.nio.file.Path, java.lang.Object, groovy.lang.Closure) - Method in NioExtensions
-
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.
- eachFileMatch(java.nio.file.Path, java.lang.Object, groovy.lang.Closure) - Method in NioGroovyMethods
-
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.
- eachFileRecurse(java.nio.file.Path, groovy.lang.Closure) - Method in NioExtensions
-
Processes each descendant file in this directory and any sub-directories.
- eachFileRecurse(java.nio.file.Path, groovy.lang.Closure) - Method in NioGroovyMethods
-
Processes each descendant file in this directory and any sub-directories.
- eachLine(java.nio.file.Path, java.lang.String, int, Closure<T>) - Method in NioExtensions
-
Iterates through this file line by line.
- eachLine(java.nio.file.Path, java.lang.String, int, Closure<T>) - Method in NioGroovyMethods
-
Iterates through this file line by line.
- eachObject(java.nio.file.Path, groovy.lang.Closure) - Method in NioExtensions
-
Iterates through the given file object by object.
- eachObject(java.nio.file.Path, groovy.lang.Closure) - Method in NioGroovyMethods
-
Iterates through the given file object by object.
- endsWith(java.lang.String) - Method in WritablePath
-
- equals(java.lang.Object) - Method in WritablePath
-
- newDataInputStream(java.nio.file.Path) - Method in NioExtensions
-
Create a data input stream for this file
- newDataInputStream(java.nio.file.Path) - Method in NioGroovyMethods
-
Create a data input stream for this file
- newDataOutputStream(java.nio.file.Path) - Method in NioExtensions
-
Creates a new data output stream for this file.
- newDataOutputStream(java.nio.file.Path) - Method in NioGroovyMethods
-
Creates a new data output stream for this file.
- newInputStream(java.nio.file.Path) - Method in NioExtensions
-
Creates a buffered input stream for this file.
- newInputStream(java.nio.file.Path) - Method in NioGroovyMethods
-
Creates a buffered input stream for this file.
- newObjectInputStream(java.nio.file.Path, java.lang.ClassLoader) - Method in NioExtensions
-
Create an object input stream for this path using the given class loader.
- newObjectInputStream(java.nio.file.Path, java.lang.ClassLoader) - Method in NioGroovyMethods
-
Create an object input stream for this path using the given class loader.
- newObjectOutputStream(java.nio.file.Path) - Method in NioExtensions
-
Create an object output stream for this path.
- newObjectOutputStream(java.nio.file.Path) - Method in NioGroovyMethods
-
Create an object output stream for this path.
- newOutputStream(java.nio.file.Path) - Method in NioExtensions
-
Create a buffered output stream for this file.
- newOutputStream(java.nio.file.Path) - Method in NioGroovyMethods
-
Create a buffered output stream for this file.
- newPrintWriter(java.nio.file.Path, java.lang.String) - Method in NioExtensions
-
Create a new PrintWriter for this file, using specified
charset.
- newPrintWriter(java.nio.file.Path, java.lang.String) - Method in NioGroovyMethods
-
Create a new PrintWriter for this file, using specified
charset.
- newReader(java.nio.file.Path, java.lang.String) - Method in NioExtensions
-
Create a buffered reader for this file, using the specified
charset as the encoding.
- newReader(java.nio.file.Path, java.lang.String) - Method in NioGroovyMethods
-
Create a buffered reader for this file, using the specified
charset as the encoding.
- newWriter(java.nio.file.Path, java.lang.String) - Method in NioExtensions
-
Creates a buffered writer for this file without writing a BOM, writing data using the given
encoding.
- newWriter(java.nio.file.Path, java.lang.String) - Method in NioGroovyMethods
-
Creates a buffered writer for this file without writing a BOM, writing data using the given
encoding.
- NioExtensions - Class in org.apache.groovy.nio.extensions
This class defines new groovy methods for Readers, Writers, InputStreams and
OutputStreams which appear on normal JDK classes inside the Groovy environment.
- NioGroovyMethods - Class in org.codehaus.groovy.runtime
This class defines new groovy methods for Readers, Writers, InputStreams and
OutputStreams which appear on normal JDK classes inside the Groovy environment.
- normalize() - Method in WritablePath
-
- withCloseable(java.io.Closeable, Closure<T>) - Method in NioExtensions
-
#deprecated use the variant in IOGroovyMethods
- withCloseable(java.io.Closeable, Closure<T>) - Method in NioGroovyMethods
-
#deprecated use the variant in IOGroovyMethods
- withDataInputStream(java.nio.file.Path, Closure<T>) - Method in NioExtensions
-
Create a new DataInputStream for this file and passes it into the closure.
- withDataInputStream(java.nio.file.Path, Closure<T>) - Method in NioGroovyMethods
-
Create a new DataInputStream for this file and passes it into the closure.
- withDataOutputStream(java.nio.file.Path, Closure<T>) - Method in NioExtensions
-
Create a new DataOutputStream for this file and passes it into the closure.
- withDataOutputStream(java.nio.file.Path, Closure<T>) - Method in NioGroovyMethods
-
Create a new DataOutputStream for this file and passes it into the closure.
- withInputStream(java.nio.file.Path, Closure<T>) - Method in NioExtensions
-
Create a new InputStream for this file and passes it into the closure.
- withInputStream(java.nio.file.Path, groovy.lang.Closure) - Method in NioGroovyMethods
-
Create a new InputStream for this file and passes it into the closure.
- withObjectInputStream(java.nio.file.Path, java.lang.ClassLoader, Closure<T>) - Method in NioExtensions
-
Create a new ObjectInputStream for this file associated with the given class loader and pass it to the closure.
- withObjectInputStream(java.nio.file.Path, java.lang.ClassLoader, Closure<T>) - Method in NioGroovyMethods
-
Create a new ObjectInputStream for this file associated with the given class loader and pass it to the closure.
- withObjectOutputStream(java.nio.file.Path, Closure<T>) - Method in NioExtensions
-
Create a new ObjectOutputStream for this path and then pass it to the
closure.
- withObjectOutputStream(java.nio.file.Path, Closure<T>) - Method in NioGroovyMethods
-
Create a new ObjectOutputStream for this path and then pass it to the
closure.
- withOutputStream(java.nio.file.Path, Closure<T>) - Method in NioExtensions
-
Creates a new OutputStream for this file and passes it into the closure.
- withOutputStream(java.nio.file.Path, groovy.lang.Closure) - Method in NioGroovyMethods
-
Creates a new OutputStream for this file and passes it into the closure.
- withPrintWriter(java.nio.file.Path, java.lang.String, Closure<T>) - Method in NioExtensions
-
Create a new PrintWriter with a specified charset for
this file.
- withPrintWriter(java.nio.file.Path, java.lang.String, Closure<T>) - Method in NioGroovyMethods
-
Create a new PrintWriter with a specified charset for
this file.
- withReader(java.nio.file.Path, java.lang.String, Closure<T>) - Method in NioExtensions
-
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.
- withReader(java.nio.file.Path, java.lang.String, Closure<T>) - Method in NioGroovyMethods
-
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.
- withWriter(java.nio.file.Path, java.lang.String, boolean, Closure<T>) - Method in NioExtensions
-
Creates a new BufferedWriter for this file, passes it to the closure, and
ensures the stream is flushed and closed after the closure returns.
- withWriter(java.nio.file.Path, java.lang.String, boolean, Closure<T>) - Method in NioGroovyMethods
-
Creates a new BufferedWriter for this file, passes it to the closure, and
ensures the stream is flushed and closed after the closure returns.
- withWriterAppend(java.nio.file.Path, Closure<T>) - Method in NioExtensions
-
Create a new BufferedWriter for this file in append mode.
- withWriterAppend(java.nio.file.Path, Closure<T>) - Method in NioGroovyMethods
-
Create a new BufferedWriter for this file in append mode.
- WritablePath - Class in org.codehaus.groovy.runtime
A Writable Path.
- WritablePath(java.nio.file.Path, java.lang.String) - Constructor in WritablePath
-
- write(java.nio.file.Path, java.lang.String, java.lang.String, boolean) - Method in NioExtensions
-
Write the text to the Path, using the specified encoding.
- write(java.nio.file.Path, java.lang.String, java.lang.String, boolean) - Method in NioGroovyMethods
-
Write the text to the Path, using the specified encoding.
- writeTo(java.io.Writer) - Method in WritablePath
-