at.tuwien.ifs.somtoolbox.reportgenerator.output
Class ReportFileWriter

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.reportgenerator.output.ReportFileWriter

public class ReportFileWriter
extends Object

Version:
$Id: ReportFileWriter.java 3888 2010-11-02 17:42:53Z frank $
Author:
Sebastian Skritek (0226286, Sebastian.Skritek@gmx.at), Martin Waitzbauer (0226025)

Field Summary
private  ArrayList lastEntry
           
private  ArrayList lastSubentry
           
private  File outputFile
           
private  ArrayList TableofContents
           
private  int type
           
private  StringBuffer writer
           
 
Constructor Summary
ReportFileWriter(String filename, int Type)
           
 
Method Summary
 void appendLatexOutput(String string)
          writes the string to the file, but first replaces some characters to their fitting latex representation
 void appendOutput(String string)
          write the given output to the file
 void appendOutput(StringBuilder sb)
          write the given content to the file
 void finish()
          closes the file and therefore finishes the output
 String writeTableOfContents()
           
 void writeTableofContentsEntry(String content)
          Writes a table of content entry to the register
 void writeTableofContentsSubEntry(String content)
          Writes a table of content entry to the subregister
 void writeTableofContentsSubSubEntry(String content)
          Writes a table of content entry to the sub-subregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputFile

private File outputFile

TableofContents

private ArrayList TableofContents

lastEntry

private ArrayList lastEntry

lastSubentry

private ArrayList lastSubentry

writer

private StringBuffer writer

type

private int type
Constructor Detail

ReportFileWriter

public ReportFileWriter(String filename,
                        int Type)
Method Detail

appendOutput

public void appendOutput(String string)
write the given output to the file

Parameters:
string - the string that shall be written to the file.

appendOutput

public void appendOutput(StringBuilder sb)
write the given content to the file


appendLatexOutput

public void appendLatexOutput(String string)
writes the string to the file, but first replaces some characters to their fitting latex representation

Parameters:
string - the string that shall be written to the file

finish

public void finish()
closes the file and therefore finishes the output


writeTableofContentsEntry

public void writeTableofContentsEntry(String content)
Writes a table of content entry to the register


writeTableofContentsSubEntry

public void writeTableofContentsSubEntry(String content)
Writes a table of content entry to the subregister


writeTableofContentsSubSubEntry

public void writeTableofContentsSubSubEntry(String content)
Writes a table of content entry to the sub-subregister


writeTableOfContents

public String writeTableOfContents()