java.lang.Object
java.io.Writer
io.helidon.media.common.CharBuffer
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
A character buffer that acts as a
Writer
and uses cached char[]
arrays.
Instances of this class are not thread-safe.
-
Constructor Details
-
CharBuffer
public CharBuffer()Constructor.
-
-
Method Details
-
write
public void write(char[] cbuf, int off, int len) -
encode
Returns the content encoded into the given character set.- Parameters:
charset
- The character set.- Returns:
- The encoded content.
-
flush
public void flush() -
close
public void close()
-