Revision: 134
http://svn.sourceforge.net/pzfilereader/?rev=134&view=rev
Author: zepernick
Date: 2006-10-26 17:22:50 -0700 (Thu, 26 Oct 2006)
Log Message:
-----------
added a new method to add a collection of columns to the row
Modified Paths:
--------------
trunk/PZFileReader/src/main/java/net/sf/pzfilereader/structure/Row.java
Modified: trunk/PZFileReader/src/main/java/net/sf/pzfilereader/structure/Row.java
===================================================================
--- trunk/PZFileReader/src/main/java/net/sf/pzfilereader/structure/Row.java 2006-10-27 00:21:56 UTC (rev 133)
+++ trunk/PZFileReader/src/main/java/net/sf/pzfilereader/structure/Row.java 2006-10-27 00:22:50 UTC (rev 134)
@@ -46,6 +46,20 @@
}
cols.add(colValue);
}
+
+ /**
+ * Appends the List of Strings to the existing columns
+ * in the row
+ *
+ * @param columns -
+ * List of Strings to append to the row
+ */
+ public void addColumn(final List columns) {
+ if (cols == null) {
+ cols = new ArrayList();
+ }
+ cols.addAll(columns);
+ }
/**
* Returns the value of a column for a specified column name
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|