Package | Description |
---|---|
org.apache.commons.io |
This package defines utility classes for working with streams, readers,
writers and files.
|
Modifier and Type | Method and Description |
---|---|
static LineIterator |
FileUtils.lineIterator(File file)
Returns an Iterator for the lines in a
File using the default encoding for the VM. |
static LineIterator |
FileUtils.lineIterator(File file,
String encoding)
Returns an Iterator for the lines in a
File . |
static LineIterator |
IOUtils.lineIterator(InputStream input,
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(InputStream input,
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(Reader reader)
Returns an Iterator for the lines in a
Reader . |
Modifier and Type | Method and 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.
|
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.