tit.summary.io.SummarySASWriter Class Reference

Inheritance diagram for tit.summary.io.SummarySASWriter:

tit.summary.io.SummaryWriter List of all members.

Public Member Functions

 SummarySASWriter (PrintStream outputinit, String name)
void writeSummary (Summary summary, Personality personality) throws WritingSummaryFailedException
void closeWriter () throws ClosingWriterFailedException

Private Member Functions

String filterMultipleSpaces (String string)

Private Attributes

PrintStream output

Static Private Attributes

static final String MULTIPLE_SPACES = " "
static final DateFormat DATE_FORMAT = new SimpleDateFormat("dd/MM/yyy")
static final DateFormat TIME_FORMAT = new SimpleDateFormat("HH:mm:ss")

Detailed Description

Writes summaries to a csv-file.
Author:
Bart Sas


Constructor & Destructor Documentation

tit.summary.io.SummarySASWriter.SummarySASWriter ( PrintStream  outputinit,
String  name 
)

Constructs a new SummaryCSVWriter.

Parameters:
outputinit The <PrintStream/code> to which the output is written.
name The name of the data step.


Member Function Documentation

String tit.summary.io.SummarySASWriter.filterMultipleSpaces ( String  string  )  [private]

Filters multiple spaces in a string.

Parameters:
string The string to filter.
Returns:
The filtered string.

void tit.summary.io.SummarySASWriter.writeSummary ( Summary  summary,
Personality  personality 
) throws WritingSummaryFailedException [virtual]

Writes a summary.

Parameters:
summary The summary to write.
personality The personality belonging to summary.
Exceptions:
WritingSummaryFailedException Is thrown when the writing of the summary fails.

Implements tit.summary.io.SummaryWriter.

void tit.summary.io.SummarySASWriter.closeWriter (  )  throws ClosingWriterFailedException [virtual]

Closes this writer. No further writes are allowed after this method is called.

Exceptions:
ClosingWriterFailedException Is thrown when writing fails.

Implements tit.summary.io.SummaryWriter.


Member Data Documentation

final String tit.summary.io.SummarySASWriter.MULTIPLE_SPACES = " " [static, private]

Multiple spaces.

final DateFormat tit.summary.io.SummarySASWriter.DATE_FORMAT = new SimpleDateFormat("dd/MM/yyy") [static, private]

The SAS date format.

final DateFormat tit.summary.io.SummarySASWriter.TIME_FORMAT = new SimpleDateFormat("HH:mm:ss") [static, private]

The SAS time format.

PrintStream tit.summary.io.SummarySASWriter.output [private]

The <PrintStream/code> to which the output is written.


The documentation for this class was generated from the following file:
Generated on Sun Jun 3 16:44:01 2007 by  doxygen 1.5.1