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 |
---|---|
<T> T |
ByteSource.read(ByteProcessor<T> processor)
Reads the contents of this byte source using the given
processor to process bytes as
they are read. |
static <T> T |
Files.readBytes(File file,
ByteProcessor<T> processor)
Process the bytes of a file.
|
static <T> T |
ByteStreams.readBytes(InputStream input,
ByteProcessor<T> processor)
Process the bytes of the given input stream using the given processor.
|
static <T> T |
ByteStreams.readBytes(InputSupplier<? extends InputStream> supplier,
ByteProcessor<T> processor)
Deprecated.
Use
ByteSource.read(ByteProcessor) instead. This
method is scheduled for removal in Guava 18.0. |
Copyright © 2010-2014. All Rights Reserved.