org.apache.jackrabbit.core.fs.local
Class HandleMonitor

java.lang.Object
  extended byorg.apache.jackrabbit.core.fs.local.HandleMonitor

public class HandleMonitor
extends 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
HandleMonitor()
           
 
Method Summary
 void dump()
          Dumps the contents of this monitor
 void dump(File file)
          Dumps the information for a file
 boolean isOpen(File file)
          Checks, if the file is open
 InputStream open(File file)
          Opens a file and returns an InputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandleMonitor

public HandleMonitor()
Method Detail

open

public InputStream open(File file)
                 throws FileNotFoundException
Opens a file and returns an InputStream

Parameters:
file -
Returns:
Throws:
FileNotFoundException

isOpen

public boolean isOpen(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(File file)
Dumps the information for a file

Parameters:
file -


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.