JsUnit 1.3
Project Developer Home doxygen

PrinterWriter Class Reference

Inheritance diagram for PrinterWriter:

Inheritance graph
[legend]
List of all members.

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.


Public Member Functions

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

Public Attributes

int mBuffer
int mClosed


Constructor & Destructor Documentation

void PrinterWriter::PrinterWriter (  ) 


Member Function Documentation

void PrinterWriter::println ( Object  data  ) 

Prints a line into the writer.

Parameters:
data The data to print as String.
Exceptions:
PrinterWriterError If println was called after closing.

void PrinterWriter::_flush ( void   ) 

Reimplemented in CtxWriter, NSServerWriter, StringWriter, SystemWriter, and HTMLWriterFilter.

void PrinterWriter::close (  ) 

Closes the writer.

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

Reimplemented in SystemWriter.

void PrinterWriter::flush (  ) 

Flushes the writer.

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

Exceptions:
PrinterWriterError If flush was called after closing.

void PrinterWriter::print ( Object  data  ) 

Prints into the writer.

Parameters:
data The data to print as String.
Exceptions:
PrinterWriterError If print 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 Fri Oct 19 23:11:15 2007 for JsUnit by doxygen 1.5.2