Skip to content


Dumping A Java Object To A String

I came across what looks to be a handy method to dump a Java object to a string (and no, I don’t mean toString()). I guess I’m spoiled by <cfdump> in ColdFusion and have got used having a visual indicator as to what an object actually looks like when trying to debug something. I haven’t yet given this code a try so I can’t speak for how well it works, but I should have a use for it soon.

Posted in ColdFusion, Java. Tagged with , , , , .

3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Thats handy, I have often thought of writing something like that but never wanted to.

  2. 008 said

    Infinite loop occurs if an object refers to itself.

Continuing the Discussion

  1. Surf 11 linked to this post on August 1, 2005

    Display Java Object as a String

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.