textbender.a.u.transfer.clipboard
Class IndexBlockMap

java.lang.Object
  extended by IndexBlockMap
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IndexBlockMapW

@ThreadSafe
 class IndexBlockMap
extends Object
implements Serializable

Map of index blocks.


Field Summary
protected  ArrayList<IndexBlock> list
           
(package private) static File PACKAGE_DIRECTORY
           
protected static File PERSISTANT_STORE_FILE
           
 
Constructor Summary
protected IndexBlockMap()
           
 
Method Summary
(package private) static IndexBlockMap create()
          Creates an IndexBlockMap from the persistent store.
(package private)  IndexBlock getIndexBlock(long clipIndex)
          Returns the index block within which a particular index falls.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKAGE_DIRECTORY

static final File PACKAGE_DIRECTORY

list

protected final ArrayList<IndexBlock> list

PERSISTANT_STORE_FILE

protected static final File PERSISTANT_STORE_FILE
Constructor Detail

IndexBlockMap

protected IndexBlockMap()
Method Detail

create

static IndexBlockMap create()
                     throws IOException
Creates an IndexBlockMap from the persistent store.

Throws:
IOException

getIndexBlock

IndexBlock getIndexBlock(long clipIndex)
Returns the index block within which a particular index falls.

Returns:
index block for the clip-index; or null if no block was previously mapped