src/main/java/pityoulish/sockets/client/TLVResponseParserImpl.java
protected String parseNestedStringValue(MsgBoardTLV  parent,
                                          MsgBoardType expect,
                                          String enc)
    throws Exception
  {
    MsgBoardTLV nested = parent.getNestedTLV();
    if (nested == null)
       throw new Exception
         (Catalog.MISSING_NESTED_TLV_3.format(parent.getType(),
                                              parent.getStart(),
                                              expect));
    if (nested.getType() != expect)
       throw new Exception
         (Catalog.UNEXPECTED_TLV_3.format(nested.getType(),
                                          nested.getStart(),
                                          expect));
    if (nested.getEnd() > parent.getEnd())
       throw new Exception
         (Catalog.OVERLONG_TLV_2.format(nested.getType(),
                                        nested.getStart()));

    return parseStringValue(nested, enc);
  }
/**
   * Parses a TLV with a single string value.
   *
   * @param parent  the TLV of which to parse the content
   * @param expect  the expected type of the contained TLV
   * @param enc     the expected encoding, for example "US-ASCII",
   *                or <code>null</code> for "UTF-8"
   *
   * @return    the string value of the contained TLV
   *
   * @throws Exception in case of a problem
   */
Parses a TLV with a single string value.
@param parent  the TLV of which to parse the content
@param expect  the expected type of the contained TLV
@param enc     the expected encoding, for example "US-ASCII",
or null for "UTF-8"

@return    the string value of the contained TLV

@throws Exception in case of a problem
Parses a TLV with a single string value . @param parent the TLV of which to parse the content @param expect the expected type of the contained TLV @param enc the expected encoding for example " US - ASCII " or null for " UTF - 8 " @return the string value of the contained TLV @throws Exception in case of a problem
protected String parseNestedStringValue(MsgBoardTLV  parent,
                                          MsgBoardType expect,
                                          String enc)
    throws Exception
  {
    MsgBoardTLV nested = parent.getNestedTLV();
    if (nested == null)
       throw new Exception
         (Catalog.MISSING_NESTED_TLV_3.format(parent.getType(),
                                              parent.getStart(),
                                              expect));
    if (nested.getType() != expect)
       throw new Exception
         (Catalog.UNEXPECTED_TLV_3.format(nested.getType(),
                                          nested.getStart(),
                                          expect));
    if (nested.getEnd() > parent.getEnd())
       throw new Exception
         (Catalog.OVERLONG_TLV_2.format(nested.getType(),
                                        nested.getStart()));
    return parseStringValue(nested, enc);
  }
protected String parseNestedStringValue ( MsgBoardTLV parent , MsgBoardType expect , String enc ) throws Exception { MsgBoardTLV nested = parent . getNestedTLV ( ) ; if ( nested == null ) throw new Exception ( Catalog . MISSING_NESTED_TLV_3 . format ( parent . getType ( ) , parent . getStart ( ) , expect ) ) ; if ( nested . getType ( ) != expect ) throw new Exception ( Catalog . UNEXPECTED_TLV_3 . format ( nested . getType ( ) , nested . getStart ( ) , expect ) ) ; if ( nested . getEnd ( ) > parent . getEnd ( ) ) throw new Exception ( Catalog . OVERLONG_TLV_2 . format ( nested . getType ( ) , nested . getStart ( ) ) ) ; return parseStringValue ( nested , enc ) ; }
Parses a TLV with a single string value.
Parses a TLV with a single string value .