public class CSVFileReader
extends java.lang.Object
CapsisBridgeClientExample.sendData(AbstractCapsisBridgeClient, String, int)| Constructor and Description |
|---|
CSVFileReader()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
Close()
Close the csv file
|
java.util.ArrayList<java.util.List<java.lang.String>> |
getDataBlock()
gets the last read data block
|
void |
Open(java.lang.String fileName,
java.lang.String _separator,
boolean _skipFirstLine)
Opens the csv file
|
boolean |
ReadBlock(int blockSize)
Read a block of rows
|
public void Open(java.lang.String fileName,
java.lang.String _separator,
boolean _skipFirstLine)
throws java.io.FileNotFoundException
fileName - The filename to open_separator - The csv separator to look for to split column data_skipFirstLine - Set to true if the first line of data in the file should be skippedjava.io.FileNotFoundExceptionpublic void Close()
public boolean ReadBlock(int blockSize)
blockSize - The maximum number of rows to read. If the end of file is reached, the datablock will be smallerpublic java.util.ArrayList<java.util.List<java.lang.String>> getDataBlock()