src/main/java/pityoulish/sockets/client/TLVResponseParserImpl.java
protected String parseStringValue(MsgBoardTLV tlv, String enc)
    throws Exception
  {
    if (tlv.getLength() < 1)
       return "";

    if (enc == null)
       enc = "UTF-8";

    return new String(tlv.getData(), tlv.getValueStart(),
                      tlv.getLength(), enc);
  }
/**
   * Parses the string value of a TLV.
   *
   * @param tlv   the TLV with expected string value
   * @param enc   the expected encoding, for example "US-ASCII",
   *              or <code>null</code> for "UTF-8"
   *
   * @return the string value, or an empty string if the value is empty
   *
   * @throws Exception in case of a problem
   */
Parses the string value of a TLV.
@param tlv   the TLV with expected string value
@param enc   the expected encoding, for example "US-ASCII",
or null for "UTF-8"

@return the string value, or an empty string if the value is empty

@throws Exception in case of a problem
Parses the string value of a TLV . @param tlv the TLV with expected string value @param enc the expected encoding for example " US - ASCII " or null for " UTF - 8 " @return the string value or an empty string if the value is empty @throws Exception in case of a problem
protected String parseStringValue(MsgBoardTLV tlv, String enc)
    throws Exception
  {
    if (tlv.getLength() < 1)
       return "";
    if (enc == null)
       enc = "UTF-8";
    return new String(tlv.getData(), tlv.getValueStart(),
                      tlv.getLength(), enc);
  }
protected String parseStringValue ( MsgBoardTLV tlv , String enc ) throws Exception { if ( tlv . getLength ( ) < 1 ) return "" ; if ( enc == null ) enc = "UTF-8" ; return new String ( tlv . getData ( ) , tlv . getValueStart ( ) , tlv . getLength ( ) , enc ) ; }
Parses the string value of a TLV.
Parses the string value of a TLV .