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 ByteSink |
Files.asByteSink(File file,
FileWriteMode... modes)
Returns a new
ByteSink for writing bytes to the given file. |
static ByteSink |
ByteStreams.asByteSink(OutputSupplier<? extends OutputStream> supplier)
Deprecated.
Convert all
OutputSupplier<? extends OutputStream>
implementations to extend ByteSink or provide a method for
viewing the object as a ByteSink . This method is scheduled
for removal in Guava 18.0. |
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 . |
Copyright © 2010-2014. All Rights Reserved.