Package org.netbeans.jemmy.util
Class Dumper
java.lang.Object
org.netbeans.jemmy.util.Dumper
Allows to "dump" current GUI state into XML file.
Uses operators' getDump methods to gather the information.
- Author:
- Alexandre Iline (alexandre.iline@sun.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
dumpAll
(PrintStream writer) Prints all component hierarchy (GUI dump).static void
dumpAll
(PrintStream writer, DumpController listener) static void
dumpAll
(PrintWriter writer) Prints all component hierarchy (GUI dump).static void
dumpAll
(PrintWriter writer, DumpController listener) static void
Prints component hierarchy (GUI dump) into file.static void
dumpAll
(String fileName, DumpController listener) static void
dumpComponent
(Component comp, PrintStream writer) Prints component hierarchy (GUI dump).static void
dumpComponent
(Component comp, PrintStream writer, DumpController listener) static void
dumpComponent
(Component comp, PrintWriter writer) static void
dumpComponent
(Component comp, PrintWriter writer, DumpController listener) Prints component hierarchy (GUI dump) starting fromcomp
component.static void
dumpComponent
(Component comp, String fileName) Prints component hierarchy (GUI dump) into file.static void
dumpComponent
(Component comp, String fileName, DumpController listener) static String
static void
printDTD
(PrintStream writer) Prints XML DTD information.static void
printDTD
(PrintWriter writer) Prints XML DTD information.static void
Prints XML DTD information into file.
-
Constructor Details
-
Dumper
public Dumper()
-
-
Method Details
-
printDTD
Prints XML DTD information.- Parameters:
writer
- a writer to write to.
-
printDTD
Prints XML DTD information.- Parameters:
writer
- a stream to write to.
-
printDTD
Prints XML DTD information into file.- Parameters:
fileName
- a file to write to.- Throws:
FileNotFoundException
-
dumpComponent
Prints component hierarchy (GUI dump) starting fromcomp
component.- Parameters:
comp
- a component to get information from.writer
- a writer to write to.
-
dumpComponent
-
dumpComponent
Prints component hierarchy (GUI dump). starting fromcomp
component.- Parameters:
comp
- a component to get information from.writer
- a stream to write to.
-
dumpComponent
-
dumpComponent
Prints component hierarchy (GUI dump) into file.- Parameters:
comp
- a component to get information from.fileName
- a file to write to.- Throws:
FileNotFoundException
-
dumpComponent
public static void dumpComponent(Component comp, String fileName, DumpController listener) throws FileNotFoundException - Throws:
FileNotFoundException
-
dumpAll
Prints all component hierarchy (GUI dump).- Parameters:
writer
- a writer to write to.
-
dumpAll
-
dumpAll
Prints all component hierarchy (GUI dump).- Parameters:
writer
- a stream to write to.
-
dumpAll
-
dumpAll
Prints component hierarchy (GUI dump) into file.- Parameters:
fileName
- a file to write to.- Throws:
FileNotFoundException
-
dumpAll
- Throws:
FileNotFoundException
-
escape
-