Package | Description |
---|---|
com.google.common.io |
This package contains utility methods and classes for working with Java I/O;
for example input streams, output streams, readers, writers, and files.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
Files.readLines(File file,
Charset charset,
LineProcessor<T> callback)
Streams lines from a
File , stopping when our callback returns
false, or we have read all of the lines. |
static <R extends Readable & Closeable,T> |
CharStreams.readLines(InputSupplier<R> supplier,
LineProcessor<T> callback)
Deprecated.
Use
CharSource.readLines(LineProcessor) instead. This
method is scheduled for removal in Guava 18.0. |
<T> T |
CharSource.readLines(LineProcessor<T> processor)
Reads lines of text from this source, processing each line as it is read using the given
processor . |
static <T> T |
CharStreams.readLines(Readable readable,
LineProcessor<T> processor)
Streams lines from a
Readable object, stopping when the processor
returns false or all lines have been read and returning the result
produced by the processor. |
static <T> T |
Resources.readLines(URL url,
Charset charset,
LineProcessor<T> callback)
Streams lines from a URL, stopping when our callback returns false, or we
have read all of the lines.
|
Copyright © 2010-2014. All Rights Reserved.