|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to provide file format specific text markup
to export measurement data tables in a particular file format.
You can easily generate FileFilter objects for Swing file chooser dialogs
using methods accept(java.io.File) and getDescription().
| Method Summary | |
boolean |
accept(java.io.File f)
Test if a file is of the appropriate type based on its file extension. |
boolean |
accept(java.lang.String s)
Test if a file is of the appropriate type based on its file extension. |
void |
endRow()
Print formatting to end a data table row. |
void |
endTable()
Print formatting to end a table. |
void |
exit()
Perform any processing after an output file has been closed. |
void |
fileBegin(java.lang.String fname,
java.io.PrintWriter out)
Print formatting required at the beginning of a new file. |
void |
fileEnd()
Print formatting to end a file. |
java.lang.String |
getDescription()
Get a description string of the file format. |
java.lang.String |
getExtension()
Retrieve the extension for the file format. |
boolean |
init(java.lang.String file,
DataTable data,
boolean oneOutputFile,
OverwriteConfirmation ovw)
Perform any up-front activities before the individual data files are created, such as creating an index to the files or tables. |
void |
newTable(java.lang.String tablename)
Print formatting required to start a new table. |
void |
startRow()
Print formatting to start a new table data row. |
void |
tableCell(java.lang.Object c)
Print a table data cell. |
void |
tableHeader()
Print formatting required to start the table header row. |
void |
tableHeaderCell(java.lang.Object c)
Print a table header cell. |
| Method Detail |
public boolean init(java.lang.String file,
DataTable data,
boolean oneOutputFile,
OverwriteConfirmation ovw)
throws java.io.IOException
file - URI of the output files to be created.data - Object holding the tables to be written.oneOutputFile - Flag indicating if all tables are to be written in one file.ovw - Instance to prompt user to overwrite existing files.
true if init was performed successfully,
false if init was aborted because user vetoed file overwrite
java.io.IOException - If the specified file could not be created.
public void fileBegin(java.lang.String fname,
java.io.PrintWriter out)
fname - Name of the file.out - PrintWriter output stream to write to.public void newTable(java.lang.String tablename)
tablename - Name of the table (usually, the metamodel element type).public void tableHeader()
public void tableHeaderCell(java.lang.Object c)
c - Cell contents.public void startRow()
public void tableCell(java.lang.Object c)
c - Cell contents.public void endRow()
public void endTable()
public void fileEnd()
public void exit()
throws java.io.IOException
java.io.IOException - If some post-processing performs file operations
that failed.public boolean accept(java.lang.String s)
s - File name to test.
true if the file name matches the file format extension,
else false.public java.lang.String getExtension()
public java.lang.String getDescription()
public boolean accept(java.io.File f)
f - File to test.
true if the file is a directory or if its name matches
the file format extension, else false.
|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||