On Wednesday 21 May 2008 03:03:00 Sebastian Frehmel wrote:
> Hi Nick
>
> That's really great!
> But in my eyes having a (static) method called
> HSSFCell.setMissingCellPolicy(MissingCellPolicy policy) in addition to
> the normal HSSFCell getCell(short cellNum) would do a better job than
> the MissingCellPolicy being set everytime getCell is called.
> The standard MissingCellPolicy would be set to RETURN_NULL_AND_BLANK.
> Existing code could be edited with minimal effort using my suggestion.
>
> What do you think?

Personally I dislike static methods.  You never know when some other code 
running in the same JVM will set a value which you thought was untouchable.  
If you need to use the same value for all calls you can always put a constant 
in your own code.

Alternatively there could be some way of setting it via the top-level workbook 
object (that way your workbook is isolated from one opened by someone else's 
code which has different requirements...) but I'm not sure how plausible that 
is.

Daniel

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

Reply via email to