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 | Class and Description |
---|---|
private class |
ByteSink.AsCharSink
A char sink that encodes written characters with a charset and writes resulting bytes to this
byte sink.
|
Modifier and Type | Method and Description |
---|---|
CharSink |
ByteSink.asCharSink(java.nio.charset.Charset charset)
Returns a
CharSink view of this ByteSink that writes characters to this sink
as bytes encoded with the given charset . |
static CharSink |
Files.asCharSink(java.io.File file,
java.nio.charset.Charset charset,
FileWriteMode... modes)
Returns a new
CharSink for writing character data to the given
file using the given character set. |
Modifier and Type | Method and Description |
---|---|
long |
CharSource.copyTo(CharSink sink)
Copies the contents of this source to the given sink.
|
ByteSink |
BaseEncoding.encodingSink(CharSink encodedSink)
Returns a
ByteSink that writes base-encoded bytes to the specified CharSink . |