public class ReportFileWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList |
lastEntry |
private java.util.ArrayList |
lastSubentry |
private java.io.File |
outputFile |
private java.util.ArrayList |
TableofContents |
private int |
type |
private java.lang.StringBuffer |
writer |
Constructor and Description |
---|
ReportFileWriter(java.lang.String filename,
int Type) |
Modifier and Type | Method and Description |
---|---|
void |
appendLatexOutput(java.lang.String string)
writes the string to the file, but first replaces some characters to their fitting latex representation
|
void |
appendOutput(java.lang.String string)
write the given output to the file
|
void |
appendOutput(java.lang.StringBuilder sb)
write the given content to the file
|
void |
finish()
closes the file and therefore finishes the output
|
java.lang.String |
writeTableOfContents() |
void |
writeTableofContentsEntry(java.lang.String content)
Writes a table of content entry to the register
|
void |
writeTableofContentsSubEntry(java.lang.String content)
Writes a table of content entry to the subregister
|
void |
writeTableofContentsSubSubEntry(java.lang.String content)
Writes a table of content entry to the sub-subregister
|
private java.io.File outputFile
private java.util.ArrayList TableofContents
private java.util.ArrayList lastEntry
private java.util.ArrayList lastSubentry
private java.lang.StringBuffer writer
private int type
public void appendOutput(java.lang.String string)
string
- the string that shall be written to the file.public void appendOutput(java.lang.StringBuilder sb)
public void appendLatexOutput(java.lang.String string)
string
- the string that shall be written to the filepublic void finish()
public void writeTableofContentsEntry(java.lang.String content)
public void writeTableofContentsSubEntry(java.lang.String content)
public void writeTableofContentsSubSubEntry(java.lang.String content)
public java.lang.String writeTableOfContents()