| public void sync() throws IOException Sync the file to disk. On supported platforms, this method behaves like POSIX
fsync and syncs all underlying OS buffers for this file
descriptor to disk. On these platforms, if this method returns, the data
written to this instance is guaranteed to be persisted on disk.
- Exceptions
- IOException:
- - if an error occurred while attempting to sync the data to disk.
|