com.crocus.examples.csv
Class AbstractCSVFieldReader

java.lang.Object
  extended by com.crocus.examples.csv.AbstractCSVFieldReader
Direct Known Subclasses:
CSVFieldReader

public abstract class AbstractCSVFieldReader
extends Object

Title:

Description:

Copyright:

Company:

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

Field Summary
protected  char[] charLine
          Holds the current line in the Buffer
protected  int counter
          Holds the count of character on the currentLine
 
Constructor Summary
AbstractCSVFieldReader(char[] charLine)
           
AbstractCSVFieldReader(char[] charLine, char deliminator)
           
 
Method Summary
abstract  CSVRecord execute()
          Execution Logic
 char getDeliminator()
           
protected abstract  String getField()
          Extracts a Field from the currentLine as a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charLine

protected char[] charLine
Holds the current line in the Buffer


counter

protected int counter
Holds the count of character on the currentLine

Constructor Detail

AbstractCSVFieldReader

public AbstractCSVFieldReader(char[] charLine)
Parameters:
charLine - char[]

AbstractCSVFieldReader

public AbstractCSVFieldReader(char[] charLine,
                              char deliminator)
Parameters:
charLine - char[]
deliminator - char
Method Detail

execute

public abstract CSVRecord execute()
Execution Logic


getField

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

Returns:
String

getDeliminator

public char getDeliminator()

Crocus - The First Flower of Spring