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.
Dumping A Java Object To A String
This entry was posted in Languages and tagged dump, dump-object, Java, java-object-to-string, object-to-string. Bookmark the permalink.










By Pete Freitag August 1, 2005 - 5:20 am
Thats handy, I have often thought of writing something like that but never wanted to.
By Surf 11 August 1, 2005 - 8:29 am
Display Java Object as a String
By 008 March 12, 2009 - 2:18 pm
Infinite loop occurs if an object refers to itself.