private MAPIProperty(int id, int usualType, String name, String mapiProperty) { this.id = id; this.usualType = usualType; this.name = name; this.mapiProperty = mapiProperty; // If it isn't unknown or custom, store it for lookup if(id == -1 || (id >= ID_FIRST_CUSTOM && id <= ID_LAST_CUSTOM) || (this instanceof CustomMAPIProperty)) { // Custom/Unknown, skip } else { if(attributes.containsKey(id)) { throw new IllegalArgumentException( "Duplicate MAPI Property with ID " + id + " : " + toString() + " vs " + attributes.get(id).toString() ); } attributes.put(id, this); } } public String toString() {
private MAPIProperty(int id, MAPIType usualType, String name, String mapiProperty) { this.id = id; this.usualType = usualType; this.name = name; this.mapiProperty = mapiProperty; // If it isn't unknown or custom, store it for lookup if (id == -1 || (id >= ID_FIRST_CUSTOM && id <= ID_LAST_CUSTOM) || (this instanceof CustomMAPIProperty)) { // Custom/Unknown, skip } else { if (attributes.containsKey(id)) { throw new IllegalArgumentException( "Duplicate MAPI Property with ID " + id + " : " + toString() + " vs " + attributes.get(id)); } attributes.put(id, this); } }
public String toString() { return getProperty().toString() + " " + data.toString(); }
public String toString() { return getProperty().toString() + " " + data; } }
public String toString() { return getProperty().toString() + " " + data; }
public String toString() { String hex; if(data.length <= 16) { hex = HexDump.toHex(data); } else { byte[] d = new byte[16]; System.arraycopy(data, 0, d, 0, 16); hex = HexDump.toHex(d); hex = hex.substring(0, hex.length()-1) + ", ....]"; } return property.toString() + " " + hex; }