|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CsvFileReader
Represent a csv file reader and writer.
Method Summary | |
---|---|
void |
close()
Close the csv file. |
java.util.List |
getTopLines(int lines)
Read the top lines with the give number. |
void |
open(java.lang.String csvFileName)
Open a csv file. |
void |
open(java.lang.String csvFileName,
char colDelimeter,
char textQualifier)
Open a csv file with the given column delimeter and text qualifier. |
java.lang.String[] |
readNext()
Read the next line. |
Method Detail |
---|
void close() throws EpPersistenceException
EpPersistenceException
- in case of any IO error happensjava.util.List getTopLines(int lines) throws EpPersistenceException
lines
- the number of lines to read
EpPersistenceException
- in case of errorvoid open(java.lang.String csvFileName) throws EpPersistenceException
csvFileName
- the csv file name
EpPersistenceException
- if the given file doesn't existvoid open(java.lang.String csvFileName, char colDelimeter, char textQualifier) throws EpPersistenceException
csvFileName
- the csv file namecolDelimeter
- the column delimetertextQualifier
- the text qualifer
EpPersistenceException
- if the given file doesn't existjava.lang.String[] readNext() throws EpPersistenceException
null
at the end of file
EpPersistenceException
- in case of any IO error happens
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |