Locks the file. Returns immediately if no incompatible intra-process or inter-process locks are held on the file. If incompatible locks are already held on the file, then it will block. If it is interrupted while blocking, it will return false.
@param bShared True if the lock being requested is a shared lock; false otherwise.
@return True if the lock was acquired successfully; false if it wasinterrupted while blocking.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.