|
From: <zep...@us...> - 2006-12-15 13:17:33
|
Revision: 217
http://svn.sourceforge.net/pzfilereader/?rev=217&view=rev
Author: zepernick
Date: 2006-12-15 05:17:33 -0800 (Fri, 15 Dec 2006)
Log Message:
-----------
added a protected method to clear the rows out of the DataSet
Changed the BuffredReader parser to call clear rows instead of using the getRows
which was removed.
Modified Paths:
--------------
trunk/PZFileReader/src/main/java/net/sf/pzfilereader/DefaultDataSet.java
trunk/PZFileReader/src/main/java/net/sf/pzfilereader/brparse/BuffReaderDelimPZDataSet.java
Modified: trunk/PZFileReader/src/main/java/net/sf/pzfilereader/DefaultDataSet.java
===================================================================
--- trunk/PZFileReader/src/main/java/net/sf/pzfilereader/DefaultDataSet.java 2006-12-15 13:16:19 UTC (rev 216)
+++ trunk/PZFileReader/src/main/java/net/sf/pzfilereader/DefaultDataSet.java 2006-12-15 13:17:33 UTC (rev 217)
@@ -254,15 +254,6 @@
/*
* (non-Javadoc)
*
- * @see net.sf.pzfilereader.IDataSet#getRows()
- */
- public List getRows() {
- return rows;
- }
-
- /*
- * (non-Javadoc)
- *
* @see net.sf.pzfilereader.IDataSet#getString(java.lang.String)
*/
public String getString(final String column) {
@@ -460,6 +451,12 @@
this.pointer = pointer;
}
-
+ /**
+ * Clears all of the in memory rows of the DataSet
+ *
+ */
+ protected void clearRows() {
+ rows.clear();
+ }
}
Modified: trunk/PZFileReader/src/main/java/net/sf/pzfilereader/brparse/BuffReaderDelimPZDataSet.java
===================================================================
--- trunk/PZFileReader/src/main/java/net/sf/pzfilereader/brparse/BuffReaderDelimPZDataSet.java 2006-12-15 13:16:19 UTC (rev 216)
+++ trunk/PZFileReader/src/main/java/net/sf/pzfilereader/brparse/BuffReaderDelimPZDataSet.java 2006-12-15 13:17:33 UTC (rev 217)
@@ -34,7 +34,7 @@
setColumnMD(new LinkedHashMap(brpzparser.getColumnMD()));
}
- getRows().clear();
+ clearRows();
addRow(r);
setPointer(0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|