flex.messaging.util
Class ToStringPrettyPrinter

java.lang.Object
  extended by flex.messaging.util.BasicPrettyPrinter
      extended by flex.messaging.util.ToStringPrettyPrinter
All Implemented Interfaces:
PrettyPrinter, Cloneable

public class ToStringPrettyPrinter
extends BasicPrettyPrinter

Recursively convert an Object graph into a String for logging/debugging purposes. Cyclical references are handled by tracking known objects. TODO: Remove check for custom toString implementations... we should be able to extend the PrettyPrintable interface to handle any custom toString requirements without needing to actually call toString on a custom object.


Constructor Summary
ToStringPrettyPrinter()
           
 
Method Summary
 Object clone()
           
 String prettify(Object o)
          Prettifies the representation of an Object as a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToStringPrettyPrinter

public ToStringPrettyPrinter()
Method Detail

prettify

public String prettify(Object o)
Description copied from class: BasicPrettyPrinter
Prettifies the representation of an Object as a String.

Specified by:
prettify in interface PrettyPrinter
Overrides:
prettify in class BasicPrettyPrinter
Returns:
A prettified version of an Object as a String.

clone

public Object clone()
Specified by:
clone in interface PrettyPrinter
Overrides:
clone in class BasicPrettyPrinter


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/util/ToStringPrettyPrinter.html