Skip navigation links
A C D E F G H I L N O R S T W 

A

append(Path, Object) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Append the text at the end of the Path without writing a BOM.
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 without writing a BOM.
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 without writing a BOM.
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, boolean) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Append the text at the end of the Path.
append(Path, Object, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Append the text at the end of the Path without writing a BOM, using a specified encoding.
append(Path, Object, String, boolean) - 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, boolean) - 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, Writer, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Append the text supplied by the Writer at the end of the File without writing a BOM, using a specified encoding.
append(Path, Writer, String, boolean) - 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, boolean) - 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.
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 without writing a BOM, using a specified encoding.
append(Path, Reader, String, boolean) - 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.

C

closeWithWarning(AutoCloseable) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Close the AutoCloseable.
compareTo(Path) - Method in class org.codehaus.groovy.runtime.WritablePath
 

D

deleteDir(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Deletes a directory with all contained files and subdirectories.

E

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
 

F

filterLine(Path, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Filters the lines of a Path and creates a Writable in return to stream the filtered lines.
filterLine(Path, String, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Filters the lines of a Path and creates a Writable in return to stream the filtered lines.
filterLine(Path, Writer, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Filter the lines from this Path, and write them to the given writer based on the given closure predicate.
filterLine(Path, Writer, String, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Filter the lines from this Path, and write them to the given writer based on the given closure predicate.

G

getBytes(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Read the content of the Path and returns it as a byte[].
getFileName() - Method in class org.codehaus.groovy.runtime.WritablePath
 
getFileSystem() - Method in class org.codehaus.groovy.runtime.WritablePath
 
getName(int) - Method in class org.codehaus.groovy.runtime.WritablePath
 
getNameCount() - Method in class org.codehaus.groovy.runtime.WritablePath
 
getParent() - Method in class org.codehaus.groovy.runtime.WritablePath
 
getRoot() - Method in class org.codehaus.groovy.runtime.WritablePath
 
getText(Path, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Read the content of the Path using the specified encoding and return it as a String.
getText(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Read the content of the Path and returns it as a String.

H

hashCode() - Method in class org.codehaus.groovy.runtime.WritablePath
 

I

isAbsolute() - Method in class org.codehaus.groovy.runtime.WritablePath
 
iterator() - Method in class org.codehaus.groovy.runtime.WritablePath
 

L

leftShift(Path, Object) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Write the text to the Path.
leftShift(Path, byte[]) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Write bytes to a Path.
leftShift(Path, InputStream) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Append binary data to the file.

N

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 without writing a BOM.
newWriter(Path, String, boolean, 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 without writing a BOM, 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
 

O

org.codehaus.groovy.runtime - package org.codehaus.groovy.runtime
Runtime classes for Groovy - whether the dynamic interpreter is being used, the compiler or the bytecode generator.

R

readBytes(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Reads the content of the file into a byte array.
readLines(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Reads the file into a list of Strings, with one item for each line.
readLines(Path, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Reads the file into a list of Strings, with one item for each line.
register(WatchService, WatchEvent.Kind<?>[], WatchEvent.Modifier...) - Method in class org.codehaus.groovy.runtime.WritablePath
 
register(WatchService, WatchEvent.Kind<?>...) - Method in class org.codehaus.groovy.runtime.WritablePath
 
relativize(Path) - Method in class org.codehaus.groovy.runtime.WritablePath
 
renameTo(Path, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Renames a file.
renameTo(Path, URI) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Renames a file.
resolve(Path) - Method in class org.codehaus.groovy.runtime.WritablePath
 
resolve(String) - Method in class org.codehaus.groovy.runtime.WritablePath
 
resolveSibling(Path) - Method in class org.codehaus.groovy.runtime.WritablePath
 
resolveSibling(String) - Method in class org.codehaus.groovy.runtime.WritablePath
 

S

setBytes(Path, byte[]) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Write the bytes from the byte array to the Path.
setText(Path, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Synonym for write(text) allowing file.text = 'foo'.
setText(Path, String, String) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Synonym for write(text, charset) allowing:
size(Path) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Provide the standard Groovy size() method for Path.
splitEachLine(Path, String, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Iterates through this file line by line, splitting each line using the given regex separator.
splitEachLine(Path, Pattern, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Iterates through this file line by line, splitting each line using the given separator Pattern.
splitEachLine(Path, String, String, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Iterates through this file line by line, splitting each line using the given regex separator.
splitEachLine(Path, Pattern, String, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Iterates through this file line by line, splitting each line using the given regex separator Pattern.
startsWith(Path) - Method in class org.codehaus.groovy.runtime.WritablePath
 
startsWith(String) - Method in class org.codehaus.groovy.runtime.WritablePath
 
subpath(int, int) - Method in class org.codehaus.groovy.runtime.WritablePath
 

T

toAbsolutePath() - Method in class org.codehaus.groovy.runtime.WritablePath
 
toFile() - Method in class org.codehaus.groovy.runtime.WritablePath
 
toRealPath(LinkOption...) - Method in class org.codehaus.groovy.runtime.WritablePath
 
toString() - Method in class org.codehaus.groovy.runtime.WritablePath
 
toUri() - Method in class org.codehaus.groovy.runtime.WritablePath
 
traverse(Path, Map<String, Object>, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Invokes closure for each descendant file in this directory tree.
traverse(Path, Closure) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Invokes the closure for each descendant file in this directory tree.
traverse(Path, Map<String, Object>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Invokes the closure specified with key 'visit' in the options Map for each descendant file in this directory tree.

W

withAutoCloseable(U, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Allows this autocloseable to be used within the closure, ensuring that it is closed once the closure has been executed and before this method returns.
withCloseable(Closeable, Closure<T>) - Static method in class org.codehaus.groovy.runtime.NioGroovyMethods
Deprecated.
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.
withWriter(Path, String, boolean, 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, String, boolean, 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 without writing a BOM .
write(Path, String, boolean) - 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 without writing a BOM, using the specified encoding.
write(Path, String, String, boolean) - 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
 
A C D E F G H I L N O R S T W 
Skip navigation links
Copyright © 2003-2017 The Apache Software Foundation. All rights reserved.