Caveat: from a POI user just doing the basics

My understanding is that rows and cells don't exist on blank sheets in
POI unless you create them (CreateRow, CreateCell). My guess is that the
file structure behind the spreadsheet makes a similar assumption: a cell
is blank/default unless there is something (style, data, etc) attached
to it. Anyway, trying to operate on a row or cell that hasn't been
created sounds like an easy way to get a null pointer exception.

If you are reading an existing spreadsheet, I think you can only assume
that populated cells "exist" in any POI sense.

Hoping I didn't totally miss the boat,

Sean R. Durity


On Mon, 2003-03-31 at 07:01, Glen Stampoultzis wrote:
> A cell can exist but be blank.  For example it may have a style associated 
> with it but not contain any data.
> 
> At 09:14 PM 31/03/2003, you wrote:
> >This is, what I am still struggeling with. What does "exist" in terms
> >of POI mean? Does a cell or row have to contain data to exist?
> >The file I am reading in is a workbook with tree sheets,
> >but only the first sheet (worksheet No 0) contains data,
> >the other two are empty.
> 
> 
> ----
> Glen Stampoultzis
> [EMAIL PROTECTED]
> http://members.iinet.net.au/~gstamp/glen/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Sean R. Durity <[EMAIL PROTECTED]>


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

Reply via email to