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.
|
com.google.common.testing |
This package contains testing utilities.
|
Modifier and Type | Class and Description |
---|---|
private static class |
Files.FileByteSink |
Modifier and Type | Method and Description |
---|---|
static ByteSink |
Files.asByteSink(java.io.File file,
FileWriteMode... modes)
Returns a new
ByteSink for writing bytes to the given file. |
ByteSink |
BaseEncoding.encodingSink(CharSink encodedSink)
Returns a
ByteSink that writes base-encoded bytes to the specified CharSink . |
Modifier and Type | Method and Description |
---|---|
long |
ByteSource.copyTo(ByteSink sink)
Copies the contents of this byte source to the given
ByteSink . |
Modifier and Type | Class and Description |
---|---|
private static class |
ArbitraryInstances.NullByteSink |