Package com.google.common.io
Class ByteSink.AsCharSink
java.lang.Object
com.google.common.io.CharSink
com.google.common.io.ByteSink.AsCharSink
- Enclosing class:
ByteSink
A char sink that encodes written characters with a charset and writes resulting bytes to this
byte sink.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.io.CharSink
openBufferedStream, write, writeFrom, writeLines, writeLines, writeLines, writeLines
-
Field Details
-
charset
-
-
Constructor Details
-
AsCharSink
-
-
Method Details
-
openStream
Description copied from class:CharSink
Opens a newWriter
for writing to this sink. This method returns a new, independent writer each time it is called.The caller is responsible for ensuring that the returned writer is closed.
- Specified by:
openStream
in classCharSink
- Throws:
IOException
- if an I/O error occurs while opening the writer
-
toString
-