Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fileExtension |
protected java.lang.String |
fileName |
protected java.lang.String |
generator |
protected int |
mode |
static int |
MODE_HTML |
static int |
MODE_XML_XSL |
protected java.lang.String |
title |
Constructor and Description |
---|
MarkupFile(java.lang.String fileName,
java.lang.String fileExtension,
java.lang.String title,
java.lang.String generator)
Constructs a new MarkupFile.
|
MarkupFile(java.io.Writer writer,
java.lang.String fileName,
java.lang.String fileExtension,
java.lang.String title,
java.lang.String generator)
Constructs a new MarkupFile.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the file.
|
protected void |
finalize() |
void |
flush()
Flushes the stream.
|
protected abstract java.lang.String |
getConvertedString(char charToConvert) |
void |
list(DataObject DataObjectToList,
java.lang.String[] columns) |
void |
list(DataObject DataObjectToList,
java.lang.String[] columns,
ProgressFrame ControllingProgressFrame) |
void |
openOutputFile(java.lang.String outputFileName) |
void |
openOutputWriter(java.io.Writer writer) |
protected abstract void |
outputFooter() |
protected abstract void |
outputHeader() |
protected abstract void |
outputItem(DataObject DataObjectToList,
java.lang.String[] columns) |
void |
presentInBrowser()
Presents the created file in the browser.
|
protected boolean |
startTableIfNecessary() |
protected boolean |
stopTableIfNecessary() |
void |
write(java.lang.String fragment) |
void |
writeln(java.lang.String line) |
void |
writelnNonConverted(java.lang.String line) |
void |
writeNonConverted(java.lang.String fragment) |
protected java.lang.String fileName
protected java.lang.String fileExtension
protected java.lang.String title
protected java.lang.String generator
public static final int MODE_HTML
public static final int MODE_XML_XSL
protected int mode
public MarkupFile(java.lang.String fileName, java.lang.String fileExtension, java.lang.String title, java.lang.String generator) throws java.io.IOException
fileName
- the name / path of the file without extensionfileExtension
- the file extensiontitle
- the title of the HTML filegenerator
- the generatorjava.io.IOException
public MarkupFile(java.io.Writer writer, java.lang.String fileName, java.lang.String fileExtension, java.lang.String title, java.lang.String generator) throws java.io.IOException
writer
- the writer to stream output to - may be null for file outputfileName
- the name / path of the file without extensionfileExtension
- the file extensiontitle
- the title of the HTML filegenerator
- the generatorjava.io.IOException
public void list(DataObject DataObjectToList, java.lang.String[] columns)
public void list(DataObject DataObjectToList, java.lang.String[] columns, ProgressFrame ControllingProgressFrame)
protected abstract void outputHeader()
protected abstract void outputItem(DataObject DataObjectToList, java.lang.String[] columns)
protected abstract void outputFooter()
protected abstract java.lang.String getConvertedString(char charToConvert)
protected boolean startTableIfNecessary()
protected boolean stopTableIfNecessary()
public void openOutputFile(java.lang.String outputFileName) throws java.io.IOException
java.io.IOException
public void openOutputWriter(java.io.Writer writer)
public void write(java.lang.String fragment)
public void writeln(java.lang.String line)
public void writelnNonConverted(java.lang.String line)
public void writeNonConverted(java.lang.String fragment)
public void presentInBrowser()
public void flush()
public void close()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de