|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.adfconverter.common.tools.file.writer.ADFConverterFileWriterImpl
uk.ac.ebi.adfconverter.common.tools.file.writer.WorkBookFileWriterjxl
Interface for all file format classes used in data writing
DataTable| Constructor Summary | |
WorkBookFileWriterjxl(java.io.File datafile)
WorkBookFileWriterjxl class Constructor. |
|
WorkBookFileWriterjxl(java.io.File datafile,
java.lang.String enc)
WorkBookFileWriterjxl class Constructor. |
|
| Method Summary | |
void |
closeFile()
Closes a data workbook file. |
void |
openFile()
Opens a data file for writing By default, opens the fisrt sheet of the workbook |
void |
setSheet(int sheet)
Sets in which sheet of the wookbook, is supposed to be read |
void |
setSheet(java.lang.String sheet)
Sets in which sheet of the wookbook, is supposed to be read |
void |
setSheet(java.lang.String sheetName,
int sheetNumber)
Sets in which sheet of the wookbook, is supposed to be read |
void |
writeDataLine(DataRow row)
Write a data row in a data file |
void |
writeHeaderLine(DataTableHeader header)
Write a table header in a file |
void |
writeLine(DataBuffer line)
Write a line ina data file Only when termination requirements have been met, the method should return a String object.
|
| Methods inherited from class uk.ac.ebi.adfconverter.common.tools.file.writer.ADFConverterFileWriterImpl |
clear, isErasable, setAppend |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ac.ebi.adfconverter.common.tools.file.writer.DataWriter |
isErasable, setAppend |
| Constructor Detail |
public WorkBookFileWriterjxl(java.io.File datafile)
datafile - the workbook file to write in
public WorkBookFileWriterjxl(java.io.File datafile,
java.lang.String enc)
datafile - the workbook file to write inenc - a given character encoding| Method Detail |
public void closeFile()
throws java.io.IOException
closeFile in interface DataWritercloseFile in class ADFConverterFileWriterImpljava.io.FileNotFoundException, - if file can not be closed
IOException, - if an error occurs during file closing.
throws also SecurityException but not handle
java.io.IOException
public void openFile()
throws java.io.IOException
openFile in interface DataWriteropenFile in class ADFConverterFileWriterImpljava.io.IOException - if an error occurs
public void setSheet(int sheet)
throws java.io.IOException
sheet - the number of the wooksheet to write in
IOException, - if an error occurs (access problem). (sheet may not exist).
java.io.IOException
public void setSheet(java.lang.String sheet)
throws java.io.IOException
sheet - the name of the wooksheet to write in
IOException, - if an error occurs (access problem). (sheet may not exist).
java.io.IOException
public void setSheet(java.lang.String sheetName,
int sheetNumber)
throws java.io.IOException
sheetName - the name of the wooksheet to write insheetNumber - the name of the wooksheet to write in
IOException, - if an error occurs (access problem). (sheet may not exist)
java.io.IOException
public void writeDataLine(DataRow row)
throws java.io.IOException
Write a data row in a data file
writeDataLine in interface DataWriterrow - containing data items
java.io.IOException
public void writeHeaderLine(DataTableHeader header)
throws java.io.IOException
writeHeaderLine in interface DataWriterheader - a header to write in the file
IOException, - if an error occurs during header (usually first line) writing.
java.io.IOException - if an error occurs during header (first line) writing.
public void writeLine(DataBuffer line)
throws java.io.IOException
Write a line ina data file
Only when termination requirements have been met, the method should return a
String object.
writeLine in interface ADFConverterFileWriterwriteLine in class ADFConverterFileWriterImplline - containing data items in one String
IOException, - if an error occurs during line writing.
java.io.IOException - if an error occurs during file writing.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||