aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter
diff options
context:
space:
mode:
authorpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-12-01 14:01:23 +0000
committerpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-12-01 14:01:23 +0000
commit23b3cb0f072ccbe12163dc25e10da64baeec2f54 (patch)
treed3f3bc4de0b8edaa93660d9064cf9d48fa66e9d7 /src/main/java/at/knowcenter
parent89d27d051f0bf9e392755be1f5b9026f762707e3 (diff)
downloadpdf-as-3-23b3cb0f072ccbe12163dc25e10da64baeec2f54.tar.gz
pdf-as-3-23b3cb0f072ccbe12163dc25e10da64baeec2f54.tar.bz2
pdf-as-3-23b3cb0f072ccbe12163dc25e10da64baeec2f54.zip
added tostring
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@658 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/knowcenter')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/pdf/ReplaceInfo.java21
1 files changed, 21 insertions, 0 deletions
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();
+ }
+
+
+
}