code: public static String getString(ByteBuffer buf, Charset encoding) {
          return getString(buf, 0, buf.remaining(), encoding);
      }
docs: Converts all remaining bytes in the buffer a String using the specified encoding.
  Does not move the buffer position.