JsUnit
Project Developer Home doxygen

Public Member Functions | Public Attributes | List of all members
PrinterWriter Class Reference

A PrinterWriter is an abstract base class for printing text. More...

Inheritance diagram for PrinterWriter:
Inheritance graph
Collaboration diagram for PrinterWriter:
Collaboration graph

Public Member Functions

void PrinterWriter ()
 
void println (Object data)
 Prints a line into the writer. More...
 
void close ()
 Closes the writer. More...
 
void _flush ()
 
void flush ()
 Flushes the writer. More...
 
void print (Object data)
 Prints into the writer. More...
 

Public Attributes

int mBuffer
 
int mClosed
 

Detailed Description

A PrinterWriter is an abstract base class for printing text.

Note
This is a helper construct to support different writers in ResultPrinter e.g. depending on the JavaScript engine.

Constructor & Destructor Documentation

void PrinterWriter::PrinterWriter ( )

Member Function Documentation

void PrinterWriter::_flush ( void  )
void PrinterWriter::close ( )

Closes the writer.

After closing the steam no further writing is allowed. Multiple calls to close should be allowed.

void PrinterWriter::flush ( )

Flushes the writer.

Writes any buffered data to the underlaying output stream system immediately.

Exceptions
PrinterWriterErrorIf flush was called after closing.
void PrinterWriter::print ( Object  data)

Prints into the writer.

Parameters
dataThe data to print as String.
Exceptions
PrinterWriterErrorIf print was called after closing.
void PrinterWriter::println ( Object  data)

Prints a line into the writer.

Parameters
dataThe data to print as String.
Exceptions
PrinterWriterErrorIf println was called after closing.

Member Data Documentation

int PrinterWriter::mBuffer
int PrinterWriter::mClosed

The documentation for this class was generated from the following file:

JsUnit © 1999, 2000, 2001, 2002, 2003, 2006, 2007 by Jörg Schaible
Generated on Wed Apr 15 2015 02:33:07 for JsUnit by doxygen 1.8.5