Package org.serviceconnector.util
Class FileCtx
java.lang.Object
org.serviceconnector.util.FileCtx
The Class FileCtx.
-
Constructor Summary
ConstructorsConstructorDescriptionFileCtx(FileLock lock, FileChannel fileChannel, File file) Instantiates a new file ctx. -
Method Summary
-
Constructor Details
-
FileCtx
Instantiates a new file ctx.- Parameters:
lock- the lockfileChannel- the file channel
-
-
Method Details
-
releaseFileLockAndCloseChannel
public void releaseFileLockAndCloseChannel() -
getFile
Gets the file.- Returns:
- the file
-