Class CharBuffer

    • Constructor Detail

      • CharBuffer

        public CharBuffer()
        Constructor.
    • Method Detail

      • write

        public void write​(char[] cbuf,
                          int off,
                          int len)
        Specified by:
        write in class Writer
      • encode

        public ByteBuffer encode​(Charset charset)
        Returns the content encoded into the given character set.
        Parameters:
        charset - The character set.
        Returns:
        The encoded content.