org.enableit.db.darrt
Class CsvDataParser

java.lang.Object
  |
  +--org.enableit.db.darrt.CsvDataParser
All Implemented Interfaces:
DataParser

public class CsvDataParser
extends java.lang.Object
implements DataParser

Author:
tim.stephenson

Constructor Summary
CsvDataParser()
          Default constructor.
 
Method Summary
 org.enableit.db.beans.RowSet getRowSet(java.io.InputStream is, org.enableit.db.beans.Table table)
          Convert an input stream of CSV data for the specified table into a structured format of a RowSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvDataParser

public CsvDataParser()
Default constructor.

Method Detail

getRowSet

public org.enableit.db.beans.RowSet getRowSet(java.io.InputStream is,
                                              org.enableit.db.beans.Table table)
                                       throws java.io.IOException,
                                              DBException
Convert an input stream of CSV data for the specified table into a structured format of a RowSet.

Specified by:
getRowSet in interface DataParser
Parameters:
is - Any Reader wrapper to input stream.
table - The name of the target Table for the RowSet.
Returns:
A RowSet instance holding the data from the InputStream.
Throws:
java.io.IOException
DBException


Copyright © 1999-2004 enableIT.org. All Rights Reserved.