tit.summary.io.SummaryXMLWriter Class Reference

Inheritance diagram for tit.summary.io.SummaryXMLWriter:

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

Public Member Functions

 SummaryXMLWriter (Writer outputinit) throws IOException
 SummaryXMLWriter (File file) throws IOException
void writeSummary (Summary summary, Personality personality) throws WritingSummaryFailedException
void closeWriter () throws ClosingWriterFailedException

Private Attributes

Writer output
Document document
SummaryDOMWriter domwriter

Detailed Description

A SummaryWriter which writes its summaries to an xml-file.
Author:
Bart Sas


Constructor & Destructor Documentation

tit.summary.io.SummaryXMLWriter.SummaryXMLWriter ( Writer  outputinit  )  throws IOException

Constructs a new SummaryXMLWriter.

Parameters:
outputinit The Writer to which the output is written.
Exceptions:
IOException 

tit.summary.io.SummaryXMLWriter.SummaryXMLWriter ( File  file  )  throws IOException

Constructs a new SummaryXMLWriter.

Parameters:
file The File to which the output is written.
Exceptions:
IOException 


Member Function Documentation

void tit.summary.io.SummaryXMLWriter.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.SummaryXMLWriter.closeWriter (  )  throws ClosingWriterFailedException [virtual]

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

Exceptions:
ClosingWriterFailedException Is thrown when the closing fails.

Implements tit.summary.io.SummaryWriter.


Member Data Documentation

Writer tit.summary.io.SummaryXMLWriter.output [private]

The Writer to which the output is written.

Document tit.summary.io.SummaryXMLWriter.document [private]

The DOM document we are writing to.

SummaryDOMWriter tit.summary.io.SummaryXMLWriter.domwriter [private]

The DOM document we are writing to.


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