- append(Path, Object) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Append the text at the end of the Path.
- append(Path, Reader) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Append the text supplied by the Writer at the end of the File.
- append(Path, Writer) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Append the text supplied by the Writer at the end of the File.
- append(Path, byte[]) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Append bytes to the end of a Path.
- append(Path, InputStream) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Append binary data to the file.
- append(Path, Object, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Append the text at the end of the Path, using a specified encoding.
- append(Path, Writer, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Append the text supplied by the Writer at the end of the File, using a specified encoding.
- append(Path, Reader, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Append the text supplied by the Reader at the end of the File, using a specified encoding.
- asType(Path, Class<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Converts this Path to a Writable or delegates to default
DefaultGroovyMethods.asType(Object, Class).
- asWritable(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Converts this Path to a Writable.
- asWritable(Path, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Allows a file to return a Writable implementation that can output itself
to a Writer stream.
- eachByte(Path, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Traverse through each byte of this Path
- eachByte(Path, int, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Traverse through the bytes of this Path, bufferLen bytes at a time.
- eachDir(Path, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Invokes the closure for each subdirectory in this directory,
ignoring regular files.
- eachDirMatch(Path, Object, Closure) - Static method in class org.codehaus.groovy.runtime.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(Path, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Invokes the closure for each descendant directory of this directory.
- eachFile(Path, FileType, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Invokes the closure for each 'child' file in this 'parent' folder/directory.
- eachFile(Path, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Invokes the closure for each 'child' file in this 'parent' folder/directory.
- eachFileMatch(Path, FileType, Object, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Invokes the closure for each file whose name (file.name) matches the given nameFilter in the given directory
- calling the DefaultGroovyMethods.isCase(Object, Object) method to determine if a match occurs.
- eachFileMatch(Path, Object, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Invokes the closure for each file whose name (file.name) matches the given nameFilter in the given directory
- calling the DefaultGroovyMethods.isCase(Object, Object) method to determine if a match occurs.
- eachFileRecurse(Path, FileType, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Invokes the closure for each descendant file in this directory.
- eachFileRecurse(Path, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Invokes the closure for each descendant file in this directory.
- eachLine(Path, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Iterates through this path line by line.
- eachLine(Path, String, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Iterates through this file line by line.
- eachLine(Path, int, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Iterates through this file line by line.
- eachLine(Path, String, int, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Iterates through this file line by line.
- eachObject(Path, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Iterates through the given file object by object.
- endsWith(Path) - Method in class org.codehaus.groovy.runtime.WritablePath
-
- endsWith(String) - Method in class org.codehaus.groovy.runtime.WritablePath
-
- equals(Object) - Method in class org.codehaus.groovy.runtime.WritablePath
-
- newDataInputStream(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a data input stream for this file
- newDataOutputStream(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Creates a new data output stream for this file.
- newInputStream(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Creates a buffered input stream for this file.
- newObjectInputStream(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create an object input stream for this file.
- newObjectInputStream(Path, ClassLoader) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create an object input stream for this path using the given class loader.
- newObjectOutputStream(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create an object output stream for this path.
- newOutputStream(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a buffered output stream for this file.
- newPrintWriter(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new PrintWriter for this file.
- newPrintWriter(Path, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new PrintWriter for this file, using specified
charset.
- newReader(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a buffered reader for this file.
- newReader(Path, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a buffered reader for this file, using the specified
charset as the encoding.
- newWriter(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a buffered writer for this file.
- newWriter(Path, boolean) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Creates a buffered writer for this file, optionally appending to the
existing file content.
- newWriter(Path, String, boolean) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Helper method to create a buffered writer for a file.
- newWriter(Path, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Creates a buffered writer for this file, writing data using the given
encoding.
- 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.
- NioGroovyMethods() - Constructor for class org.codehaus.groovy.runtime.NioGroovyMethods
-
- normalize() - Method in class org.codehaus.groovy.runtime.WritablePath
-
- withCloseable(Closeable, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Allows this closeable to be used within the closure, ensuring that it
is closed once the closure has been executed and before this method returns.
- withDataInputStream(Path, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new DataInputStream for this file and passes it into the closure.
- withDataOutputStream(Path, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new DataOutputStream for this file and passes it into the closure.
- withInputStream(Path, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new InputStream for this file and passes it into the closure.
- withObjectInputStream(Path, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new ObjectInputStream for this file and pass it to the closure.
- withObjectInputStream(Path, ClassLoader, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new ObjectInputStream for this file associated with the given class loader and pass it to the closure.
- withObjectOutputStream(Path, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new ObjectOutputStream for this path and then pass it to the
closure.
- withOutputStream(Path, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Creates a new OutputStream for this file and passes it into the closure.
- withPrintWriter(Path, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new PrintWriter for this file which is then
passed it into the given closure.
- withPrintWriter(Path, String, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new PrintWriter with a specified charset for
this file.
- withReader(Path, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new BufferedReader for this file and then
passes it into the closure, ensuring the reader is closed after the
closure returns.
- withReader(Path, String, Closure<T>) - Static method in class org.codehaus.groovy.runtime.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(Path, Closure<T>) - Static method in class org.codehaus.groovy.runtime.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.
- withWriter(Path, String, Closure<T>) - Static method in class org.codehaus.groovy.runtime.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(Path, String, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new BufferedWriter which will append to this
file.
- withWriterAppend(Path, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Create a new BufferedWriter for this file in append mode.
- WritablePath - Class in org.codehaus.groovy.runtime
-
A Writable Path.
- WritablePath(Path) - Constructor for class org.codehaus.groovy.runtime.WritablePath
-
- WritablePath(Path, String) - Constructor for class org.codehaus.groovy.runtime.WritablePath
-
- write(Path, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Write the text to the Path.
- write(Path, String, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
-
Write the text to the Path, using the specified encoding.
- writeTo(Writer) - Method in class org.codehaus.groovy.runtime.WritablePath
-