What pattern should I follow to properly deal with the risk of software shutting off right in the middle of the serialization of some data in Java?
Let's say I have some data file that I want to update. Is it possible that all data gets lost if the application shuts off while the file is being overwritten, or do Java have mecanism in order to prevent this from happenning?
I want to make sure my files never end up in a corrupted state.
https://stackoverflow.com/questions/65865511/is-file-overwritting-in-java-safe January 24, 2021 at 07:17AM
没有评论:
发表评论