Matt Benson wrote:
PING...
--- Matt Benson <[EMAIL PROTECTED]> wrote:
[SNIP]
In
talking about whether caught Exceptions should at
least be logged, Jesse mentioned "disk full" as an
example. We actually have a bugrep (32676) about
full
directories, and I found a blog today on which a
German fellow has posted a workaround to detect this
condition when writing with a FOS, using the sync()
method of the descriptor available from the stream.
We could insert this in our own FOS deriving from
java.io.FOS; we could write our own FileWriter to
use
an instance of (hypothetically) oata.util.FOS and
force the Exception on full disk.
Any more opinions on this? We could add this to
LazyFileOutputStream and check whether performance
degrades as Jesse has mentioned he fears.
I do not think that we should do this. We should not try to outguess the
OS (never mind java). File.close() corresponds to a OS close call.
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]