Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.imagero.uio.buffer.fm
Class OpenFileManager  view OpenFileManager download OpenFileManager.java

java.lang.Object
  extended bycom.imagero.uio.buffer.fm.OpenFileManager

public class OpenFileManager
extends java.lang.Object

OpenFileManager manages open files. If too much files are opened, FileManager closes some of them and opens them later if needed.


Field Summary
(package private) static java.lang.String CLOSE
           
(package private) static boolean debug
           
(package private) static java.lang.String GET
           
(package private)  java.awt.event.ActionListener handler
           
(package private)  int maxOpenCount
           
(package private) static java.lang.String OPEN
           
(package private)  java.util.Hashtable ros
           
(package private)  java.util.Vector v
           
 
Constructor Summary
OpenFileManager()
           
 
Method Summary
private  void checkSize()
           
 void close(com.imagero.uio.RandomAccessRO ro)
          finally close RandomAccessRO and remove it from this FileManager
 com.imagero.uio.RandomAccess create(java.io.File f)
          create RandomAccess which will be managed by this FileManager
private  com.imagero.uio.buffer.BufferManager createBufferManager(java.io.File f, boolean writeable)
           
 com.imagero.uio.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()
           
private  com.imagero.uio.RandomAccess openFile(java.io.File f)
           
private  com.imagero.uio.RandomAccessRO openFileRO(java.io.File f)
           
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
 

Field Detail

GET

static final java.lang.String GET
See Also:
Constant Field Values

OPEN

static final java.lang.String OPEN
See Also:
Constant Field Values

CLOSE

static final java.lang.String CLOSE
See Also:
Constant Field Values

debug

static boolean debug

v

java.util.Vector v

ros

java.util.Hashtable ros

maxOpenCount

int maxOpenCount

handler

java.awt.event.ActionListener handler
Constructor Detail

OpenFileManager

public OpenFileManager()
Method Detail

isDebug

public static boolean isDebug()

setDebug

public static void setDebug(boolean debug)

createRO

public com.imagero.uio.RandomAccessRO createRO(java.io.File f)
                                        throws java.io.IOException
create RandomAccessRO which will be managed by this FileManager


create

public com.imagero.uio.RandomAccess create(java.io.File f)
                                    throws java.io.IOException
create RandomAccess which will be managed by this FileManager


openFileRO

private com.imagero.uio.RandomAccessRO openFileRO(java.io.File f)
                                           throws java.io.IOException

openFile

private com.imagero.uio.RandomAccess openFile(java.io.File f)
                                       throws java.io.IOException

checkSize

private void checkSize()

close

public void close(com.imagero.uio.RandomAccessRO ro)
finally close RandomAccessRO and remove it from this FileManager


getMaxOpenCount

public int getMaxOpenCount()
get max count of simultaneously open files.


setMaxOpenCount

public void setMaxOpenCount(int maxOpenCount)
set max count of simultaneously open files.


createBufferManager

private com.imagero.uio.buffer.BufferManager createBufferManager(java.io.File f,
                                                                 boolean writeable)
                                                          throws java.io.IOException