Modifier and Type | Field and Description |
---|---|
private java.nio.charset.Charset |
charset |
Modifier | Constructor and Description |
---|---|
private |
AsCharSink(java.nio.charset.Charset charset) |
Modifier and Type | Method and Description |
---|---|
java.io.Writer |
openStream()
Opens a new
Writer for writing to this sink. |
java.lang.String |
toString() |
openBufferedStream, write, writeFrom, writeLines, writeLines
public java.io.Writer openStream() throws java.io.IOException
CharSink
Writer
for writing to this sink. This method should return a new,
independent writer each time it is called.
The caller is responsible for ensuring that the returned writer is closed.
openStream
in class CharSink
java.io.IOException
- if an I/O error occurs in the process of opening the writerpublic java.lang.String toString()
toString
in class java.lang.Object