From 23b3cb0f072ccbe12163dc25e10da64baeec2f54 Mon Sep 17 00:00:00 2001 From: pdanner Date: Wed, 1 Dec 2010 14:01:23 +0000 Subject: added tostring git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@658 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../knowcenter/wag/egov/egiz/pdf/ReplaceInfo.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/ReplaceInfo.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/ReplaceInfo.java index 849d224..84ecdb6 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/ReplaceInfo.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/ReplaceInfo.java @@ -61,4 +61,25 @@ public class ReplaceInfo implements Serializable */ public byte[] enc = null; + public String toString() { + return "ReplaceInfo [brev=" + (brev != null ? arrayToString(brev, brev.length) : null) + + ", enc=" + (enc != null ? arrayToString(enc, enc.length) : null) + ", sfd=" + sfd + + ", value=" + value + "]"; + } + + private String arrayToString(Object array, int len) { + StringBuffer buffer = new StringBuffer(); + buffer.append("["); + for (int i = 0; i < len; i++) { + if (i > 0) + buffer.append(", "); + if (array instanceof byte[]) + buffer.append(((byte[]) array)[i]); + } + buffer.append("]"); + return buffer.toString(); + } + + + } -- cgit v1.2.3