From: Sergey Vladimirov Date: Fri, 8 Jul 2011 12:18:48 +0000 (+0000) Subject: add toString method to GenericPropertyNode X-Git-Tag: REL_3_8_BETA4~260 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=55eb2194b16e02d63142cba2339fc05867c980ed;p=poi.git add toString method to GenericPropertyNode git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144283 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/GenericPropertyNode.java b/src/scratchpad/src/org/apache/poi/hwpf/model/GenericPropertyNode.java index 7b2730d79a..32b4789125 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/GenericPropertyNode.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/GenericPropertyNode.java @@ -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" ); + } }