mardi 30 juin 2015

Can LockableFileWriter class in Apache Commons Library be used to perform an exclusive write operation through a java program?

Will the following snippet of code prevent concurrent writes through the java program?

Here is the Javadoc for LockableFileWriter class:

Here is the Javadoc for IOUtils:

File file = new File(fileName);
     LockableFileWriter writer = new LockableFileWriter(file,true);

Aucun commentaire:

Enregistrer un commentaire