A DESCRIPTION OF THE PROBLEM :
In real world, we have to know how many bytes written after an IOException, in many cases, such as disk full.
Look at the PostgreSQL, it has a feature, if the disk is full during writing logs, the process will hang and retry until the log can be written. It's avoid log losting. But in java.io, we have no way to achieve that.
In real world, we have to know how many bytes written after an IOException, in many cases, such as disk full.
Look at the PostgreSQL, it has a feature, if the disk is full during writing logs, the process will hang and retry until the log can be written. It's avoid log losting. But in java.io, we have no way to achieve that.