On Fri, 2 May 2008, Daniel Noll wrote:
This is fair enough at the model level, but having it in usermodel is another story entirely. It seems to me BLANK and null mean the same thing for all intents and purposes, and yet the specifics of the file format are being pushed all the way to the top level. :-)

Alas not quite. Consider the case:
  1.2   "String"  (blank)   (null)   4.2

If you wanted to set all of those cells to hold the value 42.0, you'd do:

row.getCell(0).setCellValue(42.0)
row.getCell(1).setCellValue(42.0)
row.getCell(2).setCellValue(42.0)
row.createCell(3).setCellValue(42.0)
row.getCell(4).setCellValue(42.0)

So a blank cell really is different from a null cell, as you can just write straight into a blank cell, while a null cell needs to be created first


I'll tweak the javadocs of the iterators to make it clearer about null cells, just as soon as svn comes back up...

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to