A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

append(java.nio.file.Path, java.io.Reader, java.lang.String, boolean) - Method in NioExtensions
Append the text supplied by the Reader at the end of the File, using a specified encoding.
append(java.nio.file.Path, java.io.Reader, java.lang.String, boolean) - Method in NioGroovyMethods
Append the text supplied by the Reader at the end of the File, using a specified encoding.
asType(java.nio.file.Path, Class<T>) - Method in NioExtensions
Converts this Path to a groovy.lang.Writable or delegates to default org.codehaus.groovy.runtime.DefaultGroovyMethods#asType(Object, Class).
asType(java.nio.file.Path, Class<T>) - Method in NioGroovyMethods
Converts this Path to a groovy.lang.Writable or delegates to default org.codehaus.groovy.runtime.DefaultGroovyMethods#asType(Object, Class).
asWritable(java.nio.file.Path, java.lang.String) - Method in NioExtensions
Allows a file to return a Writable implementation that can output itself to a Writer stream.
asWritable(java.nio.file.Path, java.lang.String) - Method in NioGroovyMethods
Allows a file to return a Writable implementation that can output itself to a Writer stream.

B

C

compareTo(java.nio.file.Path) - Method in WritablePath

D

deleteDir(java.nio.file.Path) - Method in NioExtensions
Deletes a directory with all contained files and subdirectories.
deleteDir(java.nio.file.Path) - Method in NioGroovyMethods
Deletes a directory with all contained files and subdirectories.

E

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

F

filterLine(java.nio.file.Path, java.io.Writer, java.lang.String, groovy.lang.Closure) - Method in NioExtensions
Filter the lines from this Path, and write them to the given writer based on the given closure predicate.
filterLine(java.nio.file.Path, java.io.Writer, java.lang.String, groovy.lang.Closure) - Method in NioGroovyMethods
Filter the lines from this Path, and write them to the given writer based on the given closure predicate.

G

getBytes(java.nio.file.Path) - Method in NioExtensions
Read the content of the Path and returns it as a byte[].
getBytes(java.nio.file.Path) - Method in NioGroovyMethods
Read the content of the Path and returns it as a byte[].
getFileName() - Method in WritablePath
getFileSystem() - Method in WritablePath
getName(int) - Method in WritablePath
getNameCount() - Method in WritablePath
getParent() - Method in WritablePath
getRoot() - Method in WritablePath
getText(java.nio.file.Path) - Method in NioExtensions
Read the content of the Path and returns it as a String.
getText(java.nio.file.Path) - Method in NioGroovyMethods
Read the content of the Path and returns it as a String.

H

hashCode() - Method in WritablePath

I

isAbsolute() - Method in WritablePath
iterator() - Method in WritablePath

J

K

L

leftShift(java.nio.file.Path, java.io.InputStream) - Method in NioExtensions
Append binary data to the file.
leftShift(java.nio.file.Path, java.io.InputStream) - Method in NioGroovyMethods
Append binary data to the file.

M

N

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

O

P

Q

R

readBytes(java.nio.file.Path) - Method in NioExtensions
Reads the content of the file into a byte array.
readBytes(java.nio.file.Path) - Method in NioGroovyMethods
Reads the content of the file into a byte array.
readLines(java.nio.file.Path, java.lang.String) - Method in NioExtensions
Reads the file into a list of Strings, with one item for each line.
readLines(java.nio.file.Path, java.lang.String) - Method in NioGroovyMethods
Reads the file into a list of Strings, with one item for each line.
register(java.nio.file.WatchService, WatchEvent.Kind<?>) - Method in WritablePath
relativize(java.nio.file.Path) - Method in WritablePath
renameTo(java.nio.file.Path, java.net.URI) - Method in NioExtensions
Renames a file.
renameTo(java.nio.file.Path, java.net.URI) - Method in NioGroovyMethods
Renames a file.
resolve(java.lang.String) - Method in WritablePath
resolveSibling(java.lang.String) - Method in WritablePath

S

setBytes(java.nio.file.Path, byte[]) - Method in NioExtensions
Write the bytes from the byte array to the Path.
setBytes(java.nio.file.Path, byte[]) - Method in NioGroovyMethods
Write the bytes from the byte array to the Path.
setText(java.nio.file.Path, java.lang.String, java.lang.String) - Method in NioExtensions
Synonym for write(text, charset) allowing:
 myFile.setText('some text', charset)
 
or with some help from ExpandoMetaClass, you could do something like:
 myFile.metaClass.setText = { String s -> delegate.setText(s, 'UTF-8') }
 myfile.text = 'some text'
 
setText(java.nio.file.Path, java.lang.String, java.lang.String) - Method in NioGroovyMethods
Synonym for write(text, charset) allowing:
 myFile.setText('some text', charset)
 
or with some help from ExpandoMetaClass, you could do something like:
 myFile.metaClass.setText = { String s -> delegate.setText(s, 'UTF-8') }
 myfile.text = 'some text'
 
size(java.nio.file.Path) - Method in NioExtensions
Provide the standard Groovy size() method for Path.
size(java.nio.file.Path) - Method in NioGroovyMethods
Provide the standard Groovy size() method for Path.
splitEachLine(java.nio.file.Path, java.util.regex.Pattern, java.lang.String, Closure<T>) - Method in NioExtensions
Iterates through this file line by line, splitting each line using the given regex separator Pattern.
splitEachLine(java.nio.file.Path, java.util.regex.Pattern, java.lang.String, Closure<T>) - Method in NioGroovyMethods
Iterates through this file line by line, splitting each line using the given regex separator Pattern.
startsWith(java.lang.String) - Method in WritablePath
subpath(int, int) - Method in WritablePath

T

toAbsolutePath() - Method in WritablePath
toFile() - Method in WritablePath
toRealPath(java.nio.file.LinkOption) - Method in WritablePath
toString() - Method in WritablePath
toUri() - Method in WritablePath
traverse(java.nio.file.Path, Map<String,Object>) - Method in NioExtensions
Invokes the closure specified with key 'visit' in the options Map for each descendant file in this directory tree.
traverse(java.nio.file.Path, Map<String,Object>) - Method in NioGroovyMethods
Invokes the closure specified with key 'visit' in the options Map for each descendant file in this directory tree.

U

V

W

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

X

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _