com.crocus.examples.csv
Class CSVFieldReader

java.lang.Object
  extended by com.crocus.examples.csv.AbstractCSVFieldReader
      extended by com.crocus.examples.csv.CSVFieldReader

public class CSVFieldReader
extends AbstractCSVFieldReader

Title:

Description: Field by Field Manipulation

Copyright:

Company:

Author:
M Shaaf
Email:
shaaf.m@gmail.com

Field Summary
protected  CSVRecord csvRecord
          The Record that corresponds to the currentLine
 
Fields inherited from class com.crocus.examples.csv.AbstractCSVFieldReader
charLine, counter
 
Constructor Summary
CSVFieldReader(char[] charLine)
          Send me a currentLine from teh buffer to manipulate the fields.
CSVFieldReader(char[] charLine, char deliminator)
           
CSVFieldReader(char[] charLine, char deliminator, CSVRecord csvRecord)
           
 
Method Summary
 CSVRecord execute()
          Execution Logic
protected  String getField()
          Extracts a Field from the currentLine as a String
 
Methods inherited from class com.crocus.examples.csv.AbstractCSVFieldReader
getDeliminator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

csvRecord

protected CSVRecord csvRecord
The Record that corresponds to the currentLine

Constructor Detail

CSVFieldReader

public CSVFieldReader(char[] charLine)
Send me a currentLine from teh buffer to manipulate the fields.

Parameters:
charLine - char[]

CSVFieldReader

public CSVFieldReader(char[] charLine,
                      char deliminator)

CSVFieldReader

public CSVFieldReader(char[] charLine,
                      char deliminator,
                      CSVRecord csvRecord)
Method Detail

execute

public CSVRecord execute()
Execution Logic

Specified by:
execute in class AbstractCSVFieldReader

getField

protected String getField()
Extracts a Field from the currentLine as a String

Specified by:
getField in class AbstractCSVFieldReader
Returns:
String

Crocus - The First Flower of Spring