Ideally when one file is open in write mode another process should be able to overwrite that file. However the more clean way is to use FileChannel and FileLock classes in java.nio packages. All you have to do is
lock() is a blocking method. You can use tryLock() version which doesn't block the call.
Joined: Sep 30, 2006
Thanks Purushothaman. Let me try out.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com