/** * Converts a byte buffer into a string in the UTF-8 character set. * * @param buffer Byte buffer to convert. * * @return UTF-8 string representation of bytes. */ public static String toString(final ByteBuffer buffer) { return toCharBuffer(buffer).toString(); }