Class HandleMonitor
- java.lang.Object
-
- org.apache.jackrabbit.core.fs.local.HandleMonitor
-
public class HandleMonitor extends java.lang.Object
This Class implements a very simple open handle monitor for the local file system. This is usefull, if the list of open handles, referenced by an open FileInputStream() should be tracked. This can cause problems on windows filesystems where open files cannot be deleted.
-
-
Constructor Summary
Constructors Constructor Description HandleMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump()
Dumps the contents of this monitorvoid
dump(java.io.File file)
Dumps the information for a fileboolean
isOpen(java.io.File file)
Checks, if the file is openjava.io.InputStream
open(java.io.File file)
Opens a file and returns an InputStream
-
-
-
Method Detail
-
open
public java.io.InputStream open(java.io.File file) throws java.io.FileNotFoundException
Opens a file and returns an InputStream- Parameters:
file
-- Returns:
- Throws:
java.io.FileNotFoundException
-
isOpen
public boolean isOpen(java.io.File file)
Checks, if the file is open- Parameters:
file
-- Returns:
-
dump
public void dump()
Dumps the contents of this monitor
-
dump
public void dump(java.io.File file)
Dumps the information for a file- Parameters:
file
-
-
-