add toString method to GenericPropertyNode

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144283 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-07-08 12:18:48 +00:00
parent 5c8219c777
commit 189f4c0a09
1 changed files with 11 additions and 1 deletions

View 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" );
}
}