- java.lang.Object
-
- java.io.Writer
-
- io.helidon.media.common.CharBuffer
-
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
public class CharBuffer extends Writer
A character buffer that acts as aWriterand uses cachedchar[]arrays.Instances of this class are not thread-safe.
-
-
Constructor Summary
Constructors Constructor Description CharBuffer()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ByteBufferencode(Charset charset)Returns the content encoded into the given character set.voidflush()voidwrite(char[] cbuf, int off, int len)
-
-
-
Method Detail
-
encode
public ByteBuffer encode(Charset charset)
Returns the content encoded into the given character set.- Parameters:
charset- The character set.- Returns:
- The encoded content.
-
flush
public void flush()
-
-