| 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 |
|---|---|
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. |
static CharSink |
CharStreams.asCharSink(OutputSupplier<? extends java.lang.Appendable> supplier)
Returns a view of the given
Appendable supplier as a
CharSink. |
| 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. |
Copyright © 2010-2013. All Rights Reserved.