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(Charset charset)
|
static CharSink |
Files.asCharSink(File file,
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 Appendable> supplier)
Deprecated.
Convert all
OutputSupplier<? extends Appendable>
implementations to extend CharSink or provide a method for
viewing the object as a CharSink . This method is scheduled
for removal in Guava 18.0. |
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-2014. All Rights Reserved.