|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.fascinator.common.DummyFileLock
public class DummyFileLock
A basic file lock against a local file. For practical purposes it's often best to do logic checking against a seperate '.lock' file so that other code (such as a properties parser) doesn't get mixed up with a lock on your 'real' file.
| Constructor Summary | |
|---|---|
DummyFileLock(String new_file)
Creates a new lock against the file provided. |
|
| Method Summary | |
|---|---|
void |
getLock()
Get Lock status of a file |
void |
release()
Release lock of the file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyFileLock(String new_file)
throws IOException
IOException| Method Detail |
|---|
public void getLock()
throws IOException
IOException
public void release()
throws IOException
IOException - if File not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||