Hi,

I'm just fiddling around with the encryption support and when I want to add new
documents to the poifs, I thought DirectoryNode.createDocument(name, size, 
POIFSWriterListener)
would be a nice a method to provide the data.

But how come the POIFSWriterListener.processPOIFSWriterEvent is not throwing an 
IOException?

When you start to add an IOException clause, suddenly a lot of classes will be 
neccessary to change,
e.g. LittleEndianOutput also doesn't throw an IOException. Partly other 
io-classes/methods throw
an IOException - so it seems to be some kind of legacy problem.

I would prefer to send most IOExceptions to the caller instead of wrapping it 
into some kind of RuntimeException.

The user classes, e.g. POIFSFilesystem, would throw an IOException, therefore I 
think this change
probably doesn't affect legacy code much.

What do you think?

Andi


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to