Package org.netbeans.jemmy.util
Class Dumper
- java.lang.Object
-
- org.netbeans.jemmy.util.Dumper
-
public class Dumper extends java.lang.ObjectAllows 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 Constructor Description Dumper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddumpAll(java.io.PrintStream writer)Prints all component hierarchy (GUI dump).static voiddumpAll(java.io.PrintStream writer, DumpController listener)static voiddumpAll(java.io.PrintWriter writer)Prints all component hierarchy (GUI dump).static voiddumpAll(java.io.PrintWriter writer, DumpController listener)static voiddumpAll(java.lang.String fileName)Prints component hierarchy (GUI dump) into file.static voiddumpAll(java.lang.String fileName, DumpController listener)static voiddumpComponent(java.awt.Component comp, java.io.PrintStream writer)Prints component hierarchy (GUI dump).static voiddumpComponent(java.awt.Component comp, java.io.PrintStream writer, DumpController listener)static voiddumpComponent(java.awt.Component comp, java.io.PrintWriter writer)static voiddumpComponent(java.awt.Component comp, java.io.PrintWriter writer, DumpController listener)Prints component hierarchy (GUI dump) starting fromcompcomponent.static voiddumpComponent(java.awt.Component comp, java.lang.String fileName)Prints component hierarchy (GUI dump) into file.static voiddumpComponent(java.awt.Component comp, java.lang.String fileName, DumpController listener)static java.lang.Stringescape(java.lang.String str)static voidprintDTD(java.io.PrintStream writer)Prints XML DTD information.static voidprintDTD(java.io.PrintWriter writer)Prints XML DTD information.static voidprintDTD(java.lang.String fileName)Prints XML DTD information into file.
-
-
-
Method Detail
-
printDTD
public static void printDTD(java.io.PrintWriter writer)
Prints XML DTD information.- Parameters:
writer- a writer to write to.
-
printDTD
public static void printDTD(java.io.PrintStream writer)
Prints XML DTD information.- Parameters:
writer- a stream to write to.
-
printDTD
public static void printDTD(java.lang.String fileName) throws java.io.FileNotFoundExceptionPrints XML DTD information into file.- Parameters:
fileName- a file to write to.- Throws:
java.io.FileNotFoundException
-
dumpComponent
public static void dumpComponent(java.awt.Component comp, java.io.PrintWriter writer, DumpController listener)Prints component hierarchy (GUI dump) starting fromcompcomponent.- Parameters:
comp- a component to get information from.writer- a writer to write to.
-
dumpComponent
public static void dumpComponent(java.awt.Component comp, java.io.PrintWriter writer)
-
dumpComponent
public static void dumpComponent(java.awt.Component comp, java.io.PrintStream writer)Prints component hierarchy (GUI dump). starting fromcompcomponent.- Parameters:
comp- a component to get information from.writer- a stream to write to.
-
dumpComponent
public static void dumpComponent(java.awt.Component comp, java.io.PrintStream writer, DumpController listener)
-
dumpComponent
public static void dumpComponent(java.awt.Component comp, java.lang.String fileName) throws java.io.FileNotFoundExceptionPrints component hierarchy (GUI dump) into file.- Parameters:
comp- a component to get information from.fileName- a file to write to.- Throws:
java.io.FileNotFoundException
-
dumpComponent
public static void dumpComponent(java.awt.Component comp, java.lang.String fileName, DumpController listener) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
dumpAll
public static void dumpAll(java.io.PrintWriter writer)
Prints all component hierarchy (GUI dump).- Parameters:
writer- a writer to write to.
-
dumpAll
public static void dumpAll(java.io.PrintWriter writer, DumpController listener)
-
dumpAll
public static void dumpAll(java.io.PrintStream writer)
Prints all component hierarchy (GUI dump).- Parameters:
writer- a stream to write to.
-
dumpAll
public static void dumpAll(java.io.PrintStream writer, DumpController listener)
-
dumpAll
public static void dumpAll(java.lang.String fileName) throws java.io.FileNotFoundExceptionPrints component hierarchy (GUI dump) into file.- Parameters:
fileName- a file to write to.- Throws:
java.io.FileNotFoundException
-
dumpAll
public static void dumpAll(java.lang.String fileName, DumpController listener) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
escape
public static java.lang.String escape(java.lang.String str)
-
-