|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.imagero.uio.buffer.fm.OpenFileManager
OpenFileManager manages open files. If too much files are opened, FileManager closes some of them and opens them later if needed.
| Constructor Summary | |
OpenFileManager()
|
|
| Method Summary | |
void |
close(RandomAccessRO ro)
finally close RandomAccessRO and remove it from this FileManager |
RandomAccess |
create(java.io.File f)
create RandomAccess which will be managed by this FileManager |
RandomAccessRO |
createRO(java.io.File f)
create RandomAccessRO which will be managed by this FileManager |
int |
getMaxOpenCount()
get max count of simultaneously open files. |
static boolean |
isDebug()
|
static void |
setDebug(boolean debug)
|
void |
setMaxOpenCount(int maxOpenCount)
set max count of simultaneously open files. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OpenFileManager()
| Method Detail |
public static boolean isDebug()
public static void setDebug(boolean debug)
public RandomAccessRO createRO(java.io.File f)
throws java.io.IOException
f - File
java.io.IOException
public RandomAccess create(java.io.File f)
throws java.io.IOException
f - File
java.io.IOExceptionpublic void close(RandomAccessRO ro)
public int getMaxOpenCount()
public void setMaxOpenCount(int maxOpenCount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||