See: Description
DataInput for reading from in-memory byte arrays; its methods offer identical functionality but do not throw
IOException.
DataOutput for writing to in-memory byte arrays; its methods offer identical functionality but do not throw
IOException.
InputSupplier<? extends InputStream>, use ByteSource instead.
readLines methods.
OutputSupplier<? extends OutputStream>, use ByteSink instead.
Closeable objects.
InputStream that counts the number of bytes read.
OutputStream that starts buffering to a byte array, but switches to file buffering once the data reaches a configurable size.
Flushable objects.
DataInput that uses little-endian byte ordering for reading
short,
int,
float,
double, and
long values.
DataOutput that uses little-endian byte ordering for writing
char,
short,
int,
float,
double, and
long values.
At the core of this package are the Source/Sink types: ByteSource, CharSource, ByteSink and CharSink. They are factories for I/O streams that provide many convenience methods that handle both opening and closing streams for you.
This package is a part of the open-source Guava libraries. For more information on Sources and Sinks as well as other features of this package, see I/O Explained on the Guava wiki.