Here is my minimalist contribution of a Dumper.  It meets my needs.  It
might well be enhanced with prettyprinting logic, etc. but even as it
stands it would have been a big help in solving my previous problem.  I
kind of like the simplicity of it.

Basically it dumps 
nulls as "null"
Maps as comma-delimited key=value pairs inside of {} (with recursion as
needed)
Collections as comma delimited strings inside of ()  (with recursion as
needed)
Object[]s as comma-delimited strings inside of []  (with recursion as
needed)
all others as per their toString() method.

Steve Cohen



-----Original Message-----
From: Jochen Wiedmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 12, 2006 1:14 PM
To: COHEN, STEVEN M (SBCSI)
Cc: xmlrpc-dev@ws.apache.org
Subject: Re: Is there a "distributon" for ws-commons-java5


On 10/12/06, COHEN, STEVEN M (SBCSI) <[EMAIL PROTECTED]> wrote:

> With regard to the hard-to-findness of this bug, it would have been
much
> simpler if I
> would have had at hand a utility that could perform an improved
> toString() on an arbitrary
> Object returned by XmlRpc.  In particular, one that properly expands
> Object[]s.  Does
> anyone on this list have a utility that he uses for this purpose?

No, but that sounds like a useful tool. If anyone implements something
like a static class "Dumper" (or whatever it's called), then I'll be
glad to add it to the util package.

Jochen

-- 
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to