|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intersys.objects.ObjectDump.PrintStreamDumper
Constructor Summary | |
ObjectDump.PrintStreamDumper(OutputStream w)
|
|
ObjectDump.PrintStreamDumper(Writer w)
|
Method Summary | |
void |
dump(String name,
Object value,
ObjectHandle object)
This method is called to dump literal value of a field |
void |
handleNullObject(ObjectHandle current,
String fieldName)
|
boolean |
indent(Object o,
ObjectHandle object,
String fieldName)
This method is called to indicate start printing of "child" object, i.e. |
void |
print(Object obj)
This method is called to print a simple object |
void |
println(Object obj)
This method is called to print a simple object and and then terminate the line. |
void |
printReference(ObjectHandle oh,
ObjectHandle cur,
String fieldName)
This method is called if an object that has already been printed before is encountered. |
void |
undent()
This method is called to indicate end of printing of "child" object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectDump.PrintStreamDumper(Writer w)
public ObjectDump.PrintStreamDumper(OutputStream w)
Method Detail |
public void print(Object obj)
ObjectDump.Dumper
print
in interface ObjectDump.Dumper
obj
- Value of object to be printed, in most cases
just a String.public void println(Object obj)
ObjectDump.Dumper
println
in interface ObjectDump.Dumper
obj
- Value of object to be printed, in most cases
just a Stringpublic void dump(String name, Object value, ObjectHandle object)
ObjectDump.Dumper
dump
in interface ObjectDump.Dumper
name
- Name of the fieldvalue
- Value of the fieldobject
- Object being dumped. This is sent for
information only and can be disregarded.public boolean indent(Object o, ObjectHandle object, String fieldName)
ObjectDump.Dumper
false
, then child
object is not printed.
indent
in interface ObjectDump.Dumper
o
- childObject This parameter should be
used only to determine whether to print this object, there
is no need to print it. If the method returns
true
, then the object will be sent for
printing subsequently.object
- Current object being dumped. This is
sent for information only and can be disregarded.fieldName
- Field in current object which corresponds
to child object.
public void undent()
ObjectDump.Dumper
undent
in interface ObjectDump.Dumper
public void printReference(ObjectHandle oh, ObjectHandle cur, String fieldName)
ObjectDump.Dumper
printReference
in interface ObjectDump.Dumper
oh
- Object that has been encountered and has been
already printed.cur
- Current object being dumped. This is sent
for information only and can be disregarded.fieldName
- Field in current object which corresponds
to child object.public void handleNullObject(ObjectHandle current, String fieldName)
handleNullObject
in interface ObjectDump.Dumper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |