[EMAIL PROTECTED] wrote:

> Why do you want to throw an IllegalStateException on subsequent invocations
> of getInputStream()?

Because the nature of streaming implies, that the data can be returned only
once (as opposed to the FileItem where getInputStream() may be called as
often as you like, each time returning the same data).

Throwing an exception helps users to understand immediately, what is wrong.
Otherwise, they might possible be forced to investigate a subtle problem
without any help.


Jochen

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

Reply via email to