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(Path, Reader, String, boolean) - Method in NioGroovyMethods
Append the text supplied by the Reader at the end of the File, using a specified encoding.
asType(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(Path, String) - Method in NioGroovyMethods
Allows a file to return a Writable implementation that can output itself to a Writer stream.

B

C

compareTo(Path) - Method in WritablePath

D

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

E

eachByte(Path, int, Closure) - Method in NioGroovyMethods
Traverse through the bytes of this Path, bufferLen bytes at a time.
eachDir(Path, Closure) - Method in NioGroovyMethods
Invokes the closure for each subdirectory in this directory, ignoring regular files.
eachDirMatch(Path, Object, 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(Path, Closure) - Method in NioGroovyMethods
Recursively processes each descendant subdirectory in this directory.
eachFile(Path, Closure) - Method in NioGroovyMethods
Invokes the closure for each 'child' file in this 'parent' folder/directory.
eachFileMatch(Path, Object, 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(Path, Closure) - Method in NioGroovyMethods
Processes each descendant file in this directory and any sub-directories.
eachLine(Path, String, int, Closure<T>) - Method in NioGroovyMethods
Iterates through this file line by line.
eachObject(Path, Closure) - Method in NioGroovyMethods
Iterates through the given file object by object.
endsWith(String) - Method in WritablePath
equals(Object) - Method in WritablePath

F

filterLine(Path, Writer, String, 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(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(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(Path, InputStream) - Method in NioGroovyMethods
Append binary data to the file.

M

N

newDataInputStream(Path) - Method in NioGroovyMethods
Create a data input stream for this file
newDataOutputStream(Path) - Method in NioGroovyMethods
Creates a new data output stream for this file.
newInputStream(Path) - Method in NioGroovyMethods
Creates a buffered input stream for this file.
newObjectInputStream(Path, ClassLoader) - Method in NioGroovyMethods
Create an object input stream for this path using the given class loader.
newObjectOutputStream(Path) - Method in NioGroovyMethods
Create an object output stream for this path.
newOutputStream(Path) - Method in NioGroovyMethods
Create a buffered output stream for this file.
newPrintWriter(Path, String) - Method in NioGroovyMethods
Create a new PrintWriter for this file, using specified charset.
newReader(Path, String) - Method in NioGroovyMethods
Create a buffered reader for this file, using the specified charset as the encoding.
newWriter(Path, String) - Method in 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.
normalize() - Method in WritablePath

O

P

Q

R

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

S

setBytes(Path, byte[]) - Method in NioGroovyMethods
Write the bytes from the byte array to the Path.
setText(Path, String, 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(Path) - Method in NioGroovyMethods
Provide the standard Groovy size() method for Path.
splitEachLine(Path, Pattern, String, Closure<T>) - Method in NioGroovyMethods
Iterates through this file line by line, splitting each line using the given regex separator Pattern.
startsWith(String) - Method in WritablePath
subpath(int, int) - Method in WritablePath

T

toAbsolutePath() - Method in WritablePath
toFile() - Method in WritablePath
toRealPath(LinkOption) - Method in WritablePath
toString() - Method in WritablePath
toUri() - Method in WritablePath
traverse(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(Closeable, Closure<T>) - Method in NioGroovyMethods
#deprecated use the variant in IOGroovyMethods
withDataInputStream(Path, Closure<T>) - Method in NioGroovyMethods
Create a new DataInputStream for this file and passes it into the closure.
withDataOutputStream(Path, Closure<T>) - Method in NioGroovyMethods
Create a new DataOutputStream for this file and passes it into the closure.
withInputStream(Path, Closure) - Method in NioGroovyMethods
Create a new InputStream for this file and passes it into the closure.
withObjectInputStream(Path, 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(Path, Closure<T>) - Method in NioGroovyMethods
Create a new ObjectOutputStream for this path and then pass it to the closure.
withOutputStream(Path, Closure) - Method in NioGroovyMethods
Creates a new OutputStream for this file and passes it into the closure.
withPrintWriter(Path, String, Closure<T>) - Method in NioGroovyMethods
Create a new PrintWriter with a specified charset for this file.
withReader(Path, 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(Path, 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(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(Path, String) - Constructor in WritablePath
write(Path, String, String, boolean) - Method in NioGroovyMethods
Write the text to the Path, using the specified encoding.
writeTo(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 _