detect locked file
<p>Given a reference to a <code>File</code> instance, is it possible to (programatically) detect whether the corresponding file is locked, and if so, which process is holding the lock?</p>

<p>I'm using Java 5, running on Windows.</p>

<p>Thanks,
Don</p>
