SafeChunkyInputStream
to read its contents back. The user of this class does not need to know explicitly about its chunk implementation. It is only an implementation detail. What really matters to the outside world is that it tries to keep the file data consistent. If some data becomes corrupted while writing or later, upon reading the file, the chunk that contains the corrupted data is skipped. Because of this class purpose (keep data consistent), it is important that the user only calls #succeed
when the chunk of data is successfully written. After this call, the user can continue writing data to the file and it will not be considered related to the previous chunk. So, if this data is corrupted, the previous one is still safe.
@see SafeChunkyInputStream
|
|