|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CSVReadState>
com.mindprod.csv.CSVReadState
public enum CSVReadState
enumeration of the finite state automaton used to read CSV files.
We don't put more logic here since enums are static, and we need separate state for separate CSVReaders.
Enum Constant Summary | |
---|---|
AFTER_END_QUOTE
parser: We have just hit a quote, might be doubled or might be last one. |
|
IN_PLAIN
parser: We are in the middle of an ordinary field, possible full of blanks. |
|
IN_QUOTED
parser: e are in middle of field surrounded in quotes. |
|
SEEKING_FIELD
parser : we don't yet know if there is another non-comment field on the line. |
|
SEEKING_START
parser: We are in blanks before a field that we know is there, possibly empty, because we have seen the comma after the previous field. |
|
SKIPPING_TAIL
parser: We are in blanks after a quoted field looking for the separator |
Method Summary | |
---|---|
static CSVReadState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CSVReadState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CSVReadState AFTER_END_QUOTE
public static final CSVReadState IN_PLAIN
public static final CSVReadState IN_QUOTED
public static final CSVReadState SEEKING_FIELD
public static final CSVReadState SEEKING_START
public static final CSVReadState SKIPPING_TAIL
Method Detail |
---|
public static CSVReadState[] values()
for (CSVReadState c : CSVReadState.values()) System.out.println(c);
public static CSVReadState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |