src/main/java/pityoulish/sockets/tlv/AbstractTLV.java
public final String toFullString()
  {
    StringBuilder sb = new StringBuilder(30+3*valueLength);

    sb.append("TLV(");
    if (tlvType != null)
       sb.append(tlvType);
    else
       appendHex(sb, tlvData[tlvStart]);
    sb.append(':').append(valueLength);

    int end = getEnd();
    if (end > tlvData.length)
     {
       end = tlvData.length;
       sb.append('?');
     }
    sb.append(':');

    for (int pos=getValueStart(); pos < end; pos++)
     {
       sb.append(' ');
       appendHex(sb, tlvData[pos]);
     }

    sb.append(')');

    return sb.toString();
  }
/**
   * Generates an extended string representation of this TLV, including data.
   * This relies on the cached length, call {@link #update} to refresh.
   */
Generates an extended string representation of this TLV, including data.
This relies on the cached length, call  #update to refresh.
Generates an extended string representation of this TLV including data . This relies on the cached length call #update to refresh .
public final String toFullString()
  {
    StringBuilder sb = new StringBuilder(30+3*valueLength);
    sb.append("TLV(");
    if (tlvType != null)
       sb.append(tlvType);
    else
       appendHex(sb, tlvData[tlvStart]);
    sb.append(':').append(valueLength);
    int end = getEnd();
    if (end > tlvData.length)
     {
       end = tlvData.length;
       sb.append('?');
     }
    sb.append(':');
    for (int pos=getValueStart(); pos < end; pos++)
     {
       sb.append(' ');
       appendHex(sb, tlvData[pos]);
     }
    sb.append(')');
    return sb.toString();
  }
public final String toFullString ( ) { StringBuilder sb = new StringBuilder ( 30 + 3 * valueLength ) ; sb . append ( "TLV(" ) ; if ( tlvType != null ) sb . append ( tlvType ) ; else appendHex ( sb , tlvData [ tlvStart ] ) ; sb . append ( ':' ) . append ( valueLength ) ; int end = getEnd ( ) ; if ( end > tlvData . length ) { end = tlvData . length ; sb . append ( '?' ) ; } sb . append ( ':' ) ; for ( int pos = getValueStart ( ) ; pos < end ; pos ++ ) { sb . append ( ' ' ) ; appendHex ( sb , tlvData [ pos ] ) ; } sb . append ( ')' ) ; return sb . toString ( ) ; }
Generates an extended string representation of this TLV, including data.
Generates an extended string representation of this TLV including data .