| Package | Description |
|---|---|
| org.apache.commons.io |
This package defines utility classes for working with streams, readers,
writers and files.
|
| Modifier and Type | Method | Description |
|---|---|---|
static LineIterator |
FileUtils.lineIterator(java.io.File file) |
Returns an Iterator for the lines in a
File using the default encoding for the VM. |
static LineIterator |
FileUtils.lineIterator(java.io.File file,
java.lang.String encoding) |
Returns an Iterator for the lines in a
File. |
static LineIterator |
IOUtils.lineIterator(java.io.InputStream input,
java.lang.String encoding) |
Returns an Iterator for the lines in an
InputStream, using
the character encoding specified (or default encoding if null). |
static LineIterator |
IOUtils.lineIterator(java.io.InputStream input,
java.nio.charset.Charset encoding) |
Returns an Iterator for the lines in an
InputStream, using
the character encoding specified (or default encoding if null). |
static LineIterator |
IOUtils.lineIterator(java.io.Reader reader) |
Returns an Iterator for the lines in a
Reader. |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
LineIterator.closeQuietly(LineIterator iterator) |
Deprecated.
As of 2.6 removed without replacement. Please use the try-with-resources statement or handle
suppressed exceptions manually.
|