 RuntimeIOException</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>path</code> - The file whose lines are to be read.</dd>
<dd><code>encoding</code> - The encoding to use when reading lines.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An Iterable containing the lines from the file.</dd>
</dl>
</li>
</ul>
<a name="readLines-java.io.File-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readLines</h4>
<pre>public static&nbsp;java.lang.Iterable&lt;java.lang.String&gt;&nbsp;readLines(java.io.File&nbsp;file)</pre>
<div class="block">Returns an Iterable of the lines in the file.

 The file reader will be closed when the iterator is exhausted.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>file</code> - The file whose lines are to be read.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An Iterable containing the lines from the file.</dd>
</dl>
</li>
</ul>
<a name="readLines-java.io.File-java.lang.Class-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readLines</h4>
<pre>public static&nbsp;java.lang.Iterable&lt;java.lang.String&gt;&nbsp;readLines(java.io.File&nbsp;file,
                                                             java.lang.Class&lt;? extends java.io.InputStream&gt;&nbsp;fileInputStreamWrapper)</pre>
<div class="block">Returns an Iterable of the lines in the file.

 The file reader will be closed when the iterator is exhausted.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>file</code> - The file whose lines are to be read.</dd>
<dd><code>fileInputStreamWrapper</code> - The class to wrap the InputStream with, e.g. GZIPInputStream. Note
          that the class must have a constructor that accepts an
          InputStream.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An Iterable containing the lines from the file.</dd>
</dl>
</li>
</ul>
<a name="readLines-java.io.File-java.lang.Class-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readLines</h4>
<pre>public static&nbsp;java.lang.Iterable&lt;java.lang.String&gt;&nbsp;readLines(java.io.File&nbsp;file,
                                                             java.lang.Class&lt;? extends java.io.InputStream&gt;&nbsp;fileInputStreamWrapper,
                                                             java.lang.String&nbsp;encoding)</pre>
<div class="block">Returns an Iterable of the lines in the file, wrapping the generated
 FileInputStream with an instance of the supplied class. IO errors will
 throw an (unchecked) RuntimeIOException</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>file</code> - The file whose lines are to be read.</dd>
<dd><code>fileInputStreamWrapper</code> - The class to wrap the InputStream with, e.g. GZIPInputStream. Note
          that the class must have a constructor that accepts an
          InputStream.</dd>
<dd><code>encoding</code> - The encoding to use when reading lines.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An Iterable containing the lines from the file.</dd>
</dl>
</li>
</ul>
<a name="getLineIterable-java.io.Reader-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLineIterable</h4>
<pre>public static&nbsp;java.lang.Iterable&lt;java.lang.String&gt;&nbsp;getLineIterable(java.io.Reader&nbsp;r,
                                                                   boolean&nbsp;includeEol)</pre>
<div class="block">Given a reader, returns the lines from the reader as an Iterable.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>r</code> - input reader</dd>
<dd><code>includeEol</code> - whether to keep eol-characters in the returned strings</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>iterable of lines (as strings)</dd>
</dl>
</li>
</ul>
<a name="getLineIterable-java.io.Reader-int-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLineIterable</h4>
<pre>public static&nbsp;java.lang.Iterable&lt;java.lang.String&gt;&nbsp;getLineIterable(java.io.Reader&nbsp;r,
                                                                   int&nbsp;bufferSize,
                                                                   boolean&nbsp;includeEol)</pre>
</li>
</ul>
<a name="closeIgnoringExceptions-java.io.Closeable-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>closeIgnoringExceptions</h4>
<pre>public static&nbsp;void&nbsp;closeIgnoringExceptions(java.io.Closeable&nbsp;c)</pre>
<div class="block">Provides an implementation of closing a file for use in a finally block so
 you can correctly close a file without even more exception handling stuff.
 From a suggestion in a talk by <NAME>. Calling close() will flush().</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>c</code> - The IO resource to close (e.g., a Stream/Reader)</dd>
</dl>
</li>
</ul>
<a name="iterFilesRecursive-java.io.File-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iterFilesRecursive</h4>
<pre>public static&nbsp;java.lang.Iterable&lt;java.io.File&gt;&nbsp;iterFilesRecursive(java.io.File&nbsp;dir)</pre>
<div class="block">Iterate over all the files in the directory, recursively.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dir</code> - The root directory.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>All files within the directory.</dd>
</dl>
</li>
</ul>
<a name="iterFilesRecursive-java.io.File-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iterFilesRecursive</h4>
<pre>public static&nbsp;java.lang.Iterable&lt;java.io.File&gt;&nbsp;iterFilesRecursive(java.io.File&nbsp;dir,
                                                                  java.lang.String&nbsp;ext)</pre>
<div class="block">Iterate over all the files in the directory, recursively.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dir</code> - The root directory.</dd>
<dd><code>ext</code> - A string that must be at the end of all files (e.g. ".txt")</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>All files within the directory ending in the given extension.</dd>
</dl>
</li>
</ul>
<a name="iterFilesRecursive-java.io.File-java.util.regex.Pattern-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h