public String readStringLengthEncoded(final Charset charset) {
    int length = (int) getLengthEncodedNumeric();
    String string = new String(buf, position, length, charset);
    position += length;
    return string;
  }
public String readStringLengthEncoded ( final Charset charset ) { int length = ( int ) getLengthEncodedNumeric ( ) ; String string = new String ( buf , position , length , charset ) ; position += length ; return string ; }
Reads length-encoded string.

@param charset the charset to use, for example ASCII
@return the read string