|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.importer.base.tokenizer.AbstractImportTokenizer
pl.edu.agh.cast.importer.base.tokenizer.csv.CsvTokenizer
public class CsvTokenizer
Simple CSV data tokenizer.
| Field Summary | |
|---|---|
static String |
COMMENT_CHAR_OPTION_NAME
The comment character option indicating that a line is a comment and is not supposed to be imported. |
static String |
CSV_TOKENIZER_ID
Name of the CSV tokenizer. |
static String |
QUALIFIER_OPTION_NAME
The text qualifier option name. |
static String |
RECORD_SEPARATOR_OPTION_NAME
The record separator option name identifier of the CSV data importer. |
| Fields inherited from class pl.edu.agh.cast.importer.base.tokenizer.AbstractImportTokenizer |
|---|
options |
| Constructor Summary | |
|---|---|
CsvTokenizer()
|
|
| Method Summary | |
|---|---|
List<RawTabularData> |
tokenize(InputStream dataIs,
long rowsLimit,
org.eclipse.core.runtime.IProgressMonitor monitor)
Splits a given input stream into tokens, using specified tokenizer options. |
| Methods inherited from class pl.edu.agh.cast.importer.base.tokenizer.AbstractImportTokenizer |
|---|
equals, getEncoding, getOptionValue, getTokenizerOptions, hashCode, removeEmptyCellsFromRowEnd, removeQualifier, setEncoding, setTokenizerOptions |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CSV_TOKENIZER_ID
public static final String RECORD_SEPARATOR_OPTION_NAME
public static final String COMMENT_CHAR_OPTION_NAME
public static final String QUALIFIER_OPTION_NAME
| Constructor Detail |
|---|
public CsvTokenizer()
| Method Detail |
|---|
public List<RawTabularData> tokenize(InputStream dataIs,
long rowsLimit,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws IOException
dataIs - the data input stream to tokenizerowsLimit - the maximum number of rows to be importedmonitor - the progress monitor for the tokenization operation
IOExceptionIImportTokenizer.tokenize(java.io.InputStream, long,
org.eclipse.core.runtime.IProgressMonitor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||