code: public static String readString(final BitInput bitInput, final int lengthSize, final int byteSize,
                                      final String charsetName)
              throws IOException {
          return new String(readBytes(bitInput, lengthSize, byteSize), charsetName);
      }
docs: -----------------------------------------------------------------------------------------------------------------