- getBytes
Read the content of this InputStream and return it as a byte[]. The stream is
closed before this met
- leftShift
Overloads the leftShift operator for Appendable to allow an object to be
appended using Groovy's def
- eachObject
Iterates through the given object stream object by object. The ObjectInputStream
is closed afterward
- getText
Read the content of the Reader and return it as a String. The reader is closed
before this method re
- newObjectInputStream
Create an object input stream for this input stream using the given class
loader.
- newReader
Creates a reader for this input stream, using the specified charset as the
encoding.
- splitEachLine
Iterates through the given reader line by line, splitting each line using the
given regex separator
- eachByte
Traverse through each byte of the specified stream. The stream is closed after
the closure returns.
- eachLine
Iterates through the given reader line by line. Each line is passed to the given
1 or 2 arg closure.
- filterLine
Filter the lines from a reader and write them on the writer, according to a
closure which returns tr
- readLines
Reads the reader into a list of Strings, with one entry for each line. The
reader is closed before t
- withCloseable
Allows this AutoCloseable to be used within the closure, ensuring that it is
closed once the closure