By krishnas
via javabeat.net
Published: Oct 28 2007 / 06:50
File Locking can be achieved in java by making use of the New I/O API (nio). Before the advent of New I/O API, there was no direct support in Java for locking a file. It is important to understand that File locking is hugely dependent on the native operating system on which the program is executing.
SaveShareSend
Tags: java, open source
Comments
dzonelurker replied ago:
He forgot to mention that the file system must support file locking. Otherwise NIO won't help you. Network file systems usually don't support locking.
Illya Kysil replied ago:
Can't see how it is different from JavaDoc.
xcdesz replied ago:
It's different from javadoc, because not everyone knows that it is even out there. The guy is bringing up the functionality and providing a code sample -- no reason to bash him on that. If you already knew about it, then good for you -- move on.
Voters For This Link (10)
Voters Against This Link (6)