public class CSVLexer extends AbstractLexer
Modifier and Type | Field and Description |
---|---|
String |
encoding
The file's encoding.
|
HashMap<String,ArrayList<CSVEntry>> |
entries
The map from header label to csv entries.
|
String |
filename
The input file name.
|
String[] |
headers
The list of headers actually encountered in the file.
|
String |
sep
The file's field separator.
|
falseValues, LOGGER, quotMatches, trueValues, xmlChars
Constructor and Description |
---|
CSVLexer(Reader reader) |
CSVLexer(Reader reader,
String sep) |
CSVLexer(Reader reader,
String sep,
String encoding) |
CSVLexer(String filename) |
CSVLexer(String filename,
String sep) |
CSVLexer(String filename,
String sep,
String encoding) |
Modifier and Type | Method and Description |
---|---|
HashMap<String,ArrayList<CSVEntry>> |
lex(Reader reader)
Abstract lexing method.
|
htmlChars2XML, init, isA, xmlChars2HTML
public String encoding
public String sep
public String filename
public String[] headers
public CSVLexer(String filename, String sep, String encoding) throws IOException, SurveyException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
public CSVLexer(String filename, String sep) throws IOException, SurveyException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
public CSVLexer(String filename) throws IOException, SurveyException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
public CSVLexer(Reader reader, String sep, String encoding) throws InvocationTargetException, SurveyException, IllegalAccessException, NoSuchMethodException, IOException
public CSVLexer(Reader reader, String sep) throws SurveyException, NoSuchMethodException, IOException, IllegalAccessException, InvocationTargetException
public CSVLexer(Reader reader) throws SurveyException, NoSuchMethodException, IOException, IllegalAccessException, InvocationTargetException
public HashMap<String,ArrayList<CSVEntry>> lex(Reader reader) throws IOException, RuntimeException, SurveyException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
AbstractLexer
lex
in class AbstractLexer
reader
- The source reader, containing the data to be lexed.IOException
RuntimeException
SurveyException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
Copyright © 2015. All rights reserved.