Package com.google.common.io
Class ByteSink.AsCharSink
- java.lang.Object
-
- com.google.common.io.CharSink
-
- com.google.common.io.ByteSink.AsCharSink
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.charset.Charsetcharset
-
Constructor Summary
Constructors Modifier Constructor Description privateAsCharSink(java.nio.charset.Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.WriteropenStream()Opens a newWriterfor writing to this sink.java.lang.StringtoString()-
Methods inherited from class com.google.common.io.CharSink
openBufferedStream, write, writeFrom, writeLines, writeLines, writeLines, writeLines
-
-
-
-
Method Detail
-
openStream
public java.io.Writer openStream() throws java.io.IOExceptionDescription copied from class:CharSinkOpens a newWriterfor 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:
openStreamin classCharSink- Throws:
java.io.IOException- if an I/O error occurs while opening the writer
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-