ByteBuf.toString

Decodes this buffer's readable bytes into a string with the specified character set name. This method is identical to {@code buf.toString(buf.readerIndex(), buf.readableBytes(), charsetName)}. This method does not modify {@code readerIndex} or {@code writerIndex} of this buffer.

@throws UnsupportedCharsetException if the specified character set name is not supported by the current VM

  1. string toString(Charset charset)
    class ByteBuf
    abstract
    string
    toString
    (
    Charset charset
    )
  2. string toString(int index, int length, Charset charset)
  3. string toString()

Meta