|
||||||||||
| 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.reader.ADFConverterFileReaderImpl
uk.ac.ebi.adfconverter.common.tools.file.reader.WorkBookFileReaderjxl
Interface for all file format classes used in reading data
DataTable| Constructor Summary | |
WorkBookFileReaderjxl(java.io.File datafile)
Default Constructor for workbook reading |
|
WorkBookFileReaderjxl(java.io.File datafile,
java.lang.String enc)
Constructor for workbook reading with a specific encoding |
|
| Method Summary | |
void |
closeFile()
Closes a data text file. |
DataRow |
getDataLine(java.lang.Integer length)
Retrieves a data row from a data file Only when termination requirements have been met, the method should return a DataRow object.
|
DataBuffer |
getLine()
Retrieves a line from a data file Only when termination requirements have been met, the method should return a String object.
|
void |
openFile()
Opens a data file for reading or writing By default, opens the first 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 workbook, is supposed to be read |
boolean |
sheetExists(int _sheetNumber)
Tests if a sheet at a given position exists in the workbook |
boolean |
sheetExists(java.lang.String sheetName)
Tests if a sheet with a given name exists in the workbook |
| Methods inherited from class uk.ac.ebi.adfconverter.common.tools.file.reader.ADFConverterFileReaderImpl |
clear, finalize, getLineNumber |
| 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.reader.DataReader |
getLineNumber |
| Constructor Detail |
public WorkBookFileReaderjxl(java.io.File datafile)
datafile - the workbook file to read
public WorkBookFileReaderjxl(java.io.File datafile,
java.lang.String enc)
datafile - the workbook file to readenc - a specific character encoding| Method Detail |
public void closeFile()
closeFile in interface DataReadercloseFile in class ADFConverterFileReaderImpl
public DataRow getDataLine(java.lang.Integer length)
throws java.io.IOException
Retrieves a data row from a data file
Only when termination requirements have been met, the method should return a
DataRow object.
getDataLine in interface DataReaderlength - the maximal line length
java.io.IOException - if an error occurs during file reading
public DataBuffer getLine()
throws java.io.IOException
Retrieves a line from a data file
Only when termination requirements have been met, the method should return a
String object.
getLine in interface ADFConverterFileReadergetLine in class ADFConverterFileReaderImpljava.io.IOException - if an error occurs during file reading
public void openFile()
throws java.io.IOException
openFile in interface DataReaderopenFile in class ADFConverterFileReaderImpljava.io.IOException - if an error occurs
public void setSheet(int sheet)
throws java.io.IOException
sheet - the sheet index of the wooksheet to read
IOException, - if an error occurs during file reading
java.io.IOException
public void setSheet(java.lang.String _sheet)
throws java.io.IOException
_sheet - the name of the wooksheet to read
IOException, - if an error occurs during workbook reading
java.io.IOExceptionpublic boolean sheetExists(int _sheetNumber)
_sheetNumber - the position of the sheet to test
public boolean sheetExists(java.lang.String sheetName)
sheetName - the name of the sheet to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||