com.ricebridge.csvman.in
Class BasicCsvLoader

java.lang.Object
  extended bycom.ricebridge.csvman.in.BasicCsvLoader
All Implemented Interfaces:
CsvLoader

public class BasicCsvLoader
extends Object
implements CsvLoader

Internal Class; provides basic implementation of CsvLoader.

Since:
1.2.1

Nested Class Summary
static class BasicCsvLoader.LoaderLineListener
          Internal Class; stores most recent data line.
 
Constructor Summary
BasicCsvLoader(CsvParser pCsvParser, CsvSpec pCsvSpec, Reader pReader)
          Create a new instance based on a CsvParser instance.
 
Method Summary
 void begin()
          Initialise the parser.
 void end()
          Close reader if close-inputstream is true.
 boolean hasNext()
          Load a line of data and store it for retrieval with next().
 String[] next()
          Get the next line of data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicCsvLoader

public BasicCsvLoader(CsvParser pCsvParser,
                      CsvSpec pCsvSpec,
                      Reader pReader)
Create a new instance based on a CsvParser instance.

Method Detail

begin

public void begin()
Initialise the parser.

Specified by:
begin in interface CsvLoader

hasNext

public boolean hasNext()
Load a line of data and store it for retrieval with next().

Specified by:
hasNext in interface CsvLoader

next

public String[] next()
Get the next line of data.

Specified by:
next in interface CsvLoader

end

public void end()
Close reader if close-inputstream is true.

Specified by:
end in interface CsvLoader


Copyright © 2003-2006 Ricebridge