/** * @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 + ")"; }
/** * @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 + ")"; }
/** * @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 + ")"; }
/** * @return String representation. */ @Override public final String toString() { StringBuilder buf = new StringBuilder("Synthetic"); if (length > 0) { buf.append(" ").append(Utility.toHexString(bytes)); } return buf.toString(); }
/** * @return String representation. */ @Override public final String toString() { StringBuffer buf = new StringBuffer("Synthetic"); if (length > 0) { buf.append(" ").append(Utility.toHexString(bytes)); } return buf.toString(); }
/** * @return String representation. */ @Override public final String toString() { StringBuilder buf = new StringBuilder("Synthetic"); if (length > 0) { buf.append(" ").append(Utility.toHexString(bytes)); } return buf.toString(); }