public class ReportFileWriter extends Object
Modifier and Type | Field and Description |
---|---|
private ArrayList |
lastEntry |
private ArrayList |
lastSubentry |
private File |
outputFile |
private ArrayList |
TableofContents |
private int |
type |
private StringBuffer |
writer |
Constructor and Description |
---|
ReportFileWriter(String filename,
int Type) |
Modifier and Type | Method and Description |
---|---|
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
|
private File outputFile
private ArrayList TableofContents
private ArrayList lastEntry
private ArrayList lastSubentry
private StringBuffer writer
private int type
public ReportFileWriter(String filename, int Type)
public void appendOutput(String string)
string
- the string that shall be written to the file.public void appendOutput(StringBuilder sb)
public void appendLatexOutput(String string)
string
- the string that shall be written to the filepublic void finish()
public void writeTableofContentsEntry(String content)
public void writeTableofContentsSubEntry(String content)
public void writeTableofContentsSubSubEntry(String content)
public String writeTableOfContents()