]> source.dussan.org Git - poi.git/commitdiff
add toString method to GenericPropertyNode
authorSergey Vladimirov <sergey@apache.org>
Fri, 8 Jul 2011 12:18:48 +0000 (12:18 +0000)
committerSergey Vladimirov <sergey@apache.org>
Fri, 8 Jul 2011 12:18:48 +0000 (12:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144283 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/model/GenericPropertyNode.java

index 7b2730d79ab425c3576c27670adb209b09c33106..32b4789125b3836e501e988167adb980d1d61a33 100644 (file)
@@ -30,5 +30,15 @@ public final class GenericPropertyNode
     return (byte[])_buf;
   }
 
-
+    @Override
+    public String toString()
+    {
+        return "GenericPropertyNode ["
+                + getStart()
+                + "; "
+                + getEnd()
+                + ") "
+                + ( getBytes() != null ? getBytes().length + " byte(s)"
+                        : "null" );
+    }
 }