/** * Get a string representation of this attribute. The radix for the * presentation of the value can be specified; e.g. 16 for hex, 10 for * decimal. * * @param radix * The radix for the representation of the value. * @return A string representation of the value of this attribute. * @preconditions * @postconditions (result <> null) */ public String toString(int radix) { if (present) { if (sensitive) { return "<Value is sensitive>"; } else { return getValueString(radix); } } else { return "<Attribute not present>"; } }
/** * Returns a string representation of the current object. The * output is only for debugging purposes and should not be used for other * purposes. * * @return A string presentation of this object for debugging output. */ @Override public String toString() { String superToString = super.toString(); return Util.concatObjectsCap(superToString.length() + 100, superToString, "\n Pixel X: ", pixelX.getValueString(), "\n Pixel Y: ", pixelY.getValueString(), "\n Resolution: ", resolution.getValueString(), "\n Char Rows: ", charRows.getValueString(), "\n Char Columns: ", charColumns.getValueString(), "\n Color: ", color.getValueString(), "\n Bits per Pixel: ", bitsPerPixel.getValueString(), "\n Char sets:", toString(charSets), "\n Encoding methods: ", toString(encodingMethods), "\n Mime Types: ", toString(mimeTypes)); }