Would you like to copy the permanent link to your clipboard?
Permanent link:
https://jazz.net/forum/questions/36228/how-do-i-lock-a-stream-through-the-java-api/245268