Java Doc for TestOut.java in  » IDE-Netbeans » jemmy » org » netbeans » jemmy » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » jemmy » org.netbeans.jemmy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.jemmy.TestOut

TestOut
public class TestOut (Code)
Test output.
author:
   Alexandre Iline (alexandre.iline@sun.com)



Constructor Summary
public  TestOut(InputStream in, PrintStream out, PrintStream err)
     Constructor.
public  TestOut(InputStream in, PrintStream out, PrintStream err, PrintStream golden)
     Constructor.
public  TestOut(InputStream in, PrintWriter out, PrintWriter err)
     Constructor.
public  TestOut(InputStream in, PrintWriter out, PrintWriter err, PrintWriter golden)
     Constructor.
public  TestOut()
     Creates unstance using System.in, System.out and System.err streams.

Method Summary
public  TestOutcreateErrorOutput()
     Creates an output which prints only error messages.
public  voidflush()
     Flushes all output threads.
public  booleangetAutoFlushMode()
     Says if flush is invoked after each output.
public  PrintWritergetErrput()
     Returns errput writer.
public  PrintWritergetGolden()
     Returns golden output writer.
public  InputStreamgetInput()
     Returns input stream.
public static  TestOutgetNullOutput()
     Creates output which does not print any message anywhere.
public  PrintWritergetOutput()
     Returns output writer.
public  voidprint(String line)
     Prints a line into output.
public  voidprintErrLine(String line)
     Prints a line into error output.
public  voidprintError(String text)
     Prints a error line.
public  voidprintGolden(String line)
     Prints a line into golden output.
public  voidprintLine(String line)
     Prints a line and then terminate the line by writing the line separator string.
public  voidprintLine(boolean toOut, String line)
     Prints a line into either output or errput.
public  voidprintStackTrace(Throwable e)
     Prints an exception stack trace into error stream.
public  voidprintTrace(String text)
     Prints a trace line.
public  intread()
     Read one byte from input.
public  StringreadLine()
     Read a line from input.
public  booleansetAutoFlushMode(boolean autoFlushMode)
     Specifies either flush is invoked after each output.
Parameters:
  autoFlushMode - If true flush is invoking after each output.


Constructor Detail
TestOut
public TestOut(InputStream in, PrintStream out, PrintStream err)(Code)
Constructor.
Parameters:
  in - Input stream
Parameters:
  out - Output stream
Parameters:
  err - Errput stream



TestOut
public TestOut(InputStream in, PrintStream out, PrintStream err, PrintStream golden)(Code)
Constructor.
Parameters:
  in - Input stream
Parameters:
  out - Output stream
Parameters:
  err - Errput stream
Parameters:
  golden - Golgen output stream



TestOut
public TestOut(InputStream in, PrintWriter out, PrintWriter err)(Code)
Constructor.
Parameters:
  in - Input stream
Parameters:
  out - Output stream
Parameters:
  err - Errput stream



TestOut
public TestOut(InputStream in, PrintWriter out, PrintWriter err, PrintWriter golden)(Code)
Constructor.
Parameters:
  in - Input stream
Parameters:
  out - Output stream
Parameters:
  err - Errput stream
Parameters:
  golden - Golgen output stream



TestOut
public TestOut()(Code)
Creates unstance using System.in, System.out and System.err streams.




Method Detail
createErrorOutput
public TestOut createErrorOutput()(Code)
Creates an output which prints only error messages. a TestOut instance which has only error stream.



flush
public void flush()(Code)
Flushes all output threads.



getAutoFlushMode
public boolean getAutoFlushMode()(Code)
Says if flush is invoked after each output. Value of the auto flush mode.
See Also:   TestOut.setAutoFlushMode



getErrput
public PrintWriter getErrput()(Code)
Returns errput writer. a error stream



getGolden
public PrintWriter getGolden()(Code)
Returns golden output writer. a golden output stream



getInput
public InputStream getInput()(Code)
Returns input stream. an input stream



getNullOutput
public static TestOut getNullOutput()(Code)
Creates output which does not print any message anywhere. a TestOut object which does not print any message anywhere.



getOutput
public PrintWriter getOutput()(Code)
Returns output writer. an output stream



print
public void print(String line)(Code)
Prints a line into output.
Parameters:
  line - a string to print into output stream.



printErrLine
public void printErrLine(String line)(Code)
Prints a line into error output.
Parameters:
  line - a string to print into error output stream.



printError
public void printError(String text)(Code)
Prints a error line.
Parameters:
  text - a error text.



printGolden
public void printGolden(String line)(Code)
Prints a line into golden output.
Parameters:
  line - a string to print into golden output stream.



printLine
public void printLine(String line)(Code)
Prints a line and then terminate the line by writing the line separator string.
Parameters:
  line - a string to print into output stream.



printLine
public void printLine(boolean toOut, String line)(Code)
Prints a line into either output or errput.
Parameters:
  toOut - If true prints a line into output.
Parameters:
  line - a string to print.



printStackTrace
public void printStackTrace(Throwable e)(Code)
Prints an exception stack trace into error stream.
Parameters:
  e - exception



printTrace
public void printTrace(String text)(Code)
Prints a trace line.
Parameters:
  text - a trace text.



read
public int read() throws IOException(Code)
Read one byte from input. an int from input stream.
exception:
  IOException -



readLine
public String readLine() throws IOException(Code)
Read a line from input. a line from input stream.
exception:
  IOException -



setAutoFlushMode
public boolean setAutoFlushMode(boolean autoFlushMode)(Code)
Specifies either flush is invoked after each output.
Parameters:
  autoFlushMode - If true flush is invoking after each output. Old value of the auto flush mode.
See Also:   TestOut.getAutoFlushMode



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.