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)
Deprecated.
Prefer
asByteSource(file).read(processor) . This method is scheduled to be
removed in January 2019. |
static <T> T |
ByteStreams.readBytes(InputStream input,
ByteProcessor<T> processor)
Process the bytes of the given input stream using the given processor.
|
Copyright © 2010–2017. All rights reserved.