Esempio n. 1
0
 public void dump(long lMethod) {
   Log.log(
       "\ttag = 0x" + Utility.toHexString(tag) + " (" + OptionalParameterTag.toString(tag) + ")",
       0x100000000000000L | lMethod);
   Log.log("\tlength = " + length, 0x100000000000000L | lMethod);
   Log.log("\tvalue(binary) = 0x" + Utility.toHexString(value), 0x100000000000000L | lMethod);
 }
 /** @return String representation. */
 @Override
 public final String toString() {
   if (length == 0 || bytes == null) {
     return "(Unknown attribute " + name + ")";
   }
   String hex;
   if (length > 10) {
     byte[] tmp = new byte[10];
     System.arraycopy(bytes, 0, tmp, 0, 10);
     hex = Utility.toHexString(tmp) + "... (truncated)";
   } else {
     hex = Utility.toHexString(bytes);
   }
   return "(Unknown attribute " + name + ": " + hex + ")";
 }
Esempio n. 3
0
  /** @return String representation. */
  public final String toString() {
    StringBuffer buf = new StringBuffer("Synthetic");

    if (length > 0) buf.append(" ").append(Utility.toHexString(bytes));

    return buf.toString();
  }