public class CsvProducer extends Object implements IDataSetProducer
Constructor and Description |
---|
CsvProducer(File theDirectory) |
CsvProducer(String theDirectory) |
Modifier and Type | Method and Description |
---|---|
static List |
getTables(URL base,
String tableList)
Get a list of tables that this producer will create
|
void |
produce()
Process this dataset source.
|
void |
setConsumer(IDataSetConsumer consumer) |
public CsvProducer(String theDirectory)
public CsvProducer(File theDirectory)
public void setConsumer(IDataSetConsumer consumer) throws DataSetException
setConsumer
in interface IDataSetProducer
DataSetException
public void produce() throws DataSetException
IDataSetProducer
This method is synchronous: it will not return until processing has ended. If a client application wants to terminate parsing early, it should throw an exception from the listener.
produce
in interface IDataSetProducer
DataSetException
public static List getTables(URL base, String tableList) throws IOException
IOException
- when IO on the base URL has issues.Copyright © 2002-2012. All Rights Reserved.