public final class ObjectDumper
extends java.lang.Object
ph-commons-util.)| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_INDENT_WIDTH |
static int |
DEFAULT_MAX_DEPTH |
| 构造器和说明 |
|---|
ObjectDumper(java.lang.StringBuilder result) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendObject(java.lang.Object object)
Does a dump of the given Object, using whatever
DumpMode is providied for its
class. |
void |
appendObject(java.lang.Object object,
DumpMode dumpMode)
Does a dump of the given Object using the given
DumpMode. |
static java.lang.String |
dumpObject(java.lang.Object object,
DumpMode dumpMode)
Convenience method to do a
DumpMode.DEEP dump of a single Object
and return the resulting String. |
int |
getIndentWidth() |
int |
getMaxDepth() |
void |
setIndentWidth(int indentWidth) |
void |
setMaxDepth(int maxDepth) |
public static final int DEFAULT_INDENT_WIDTH
public static final int DEFAULT_MAX_DEPTH
public static java.lang.String dumpObject(java.lang.Object object,
DumpMode dumpMode)
DumpMode.DEEP dump of a single Object
and return the resulting String.public int getIndentWidth()
public void setIndentWidth(int indentWidth)
public int getMaxDepth()
public void setMaxDepth(int maxDepth)
public void appendObject(java.lang.Object object)
DumpMode is providied for its
class. If the Object is null, then DumpMode.TO_STRING is used.public void appendObject(java.lang.Object object,
DumpMode dumpMode)
DumpMode.object - dumpMode - if DumpMode.DEEP then the Object is dumped deeply, if
DumpMode.TO_STRING then the Object's Object.toString() is called,
if DumpMode.IGNORE then nothing happens.