org.wdssii.core
Class FamIndex

java.lang.Object
  extended by org.wdssii.core.Index
      extended by org.wdssii.core.FamIndex

public class FamIndex
extends Index

Index that reads a code_index.fam listing

Author:
lakshman

Field Summary
private  FamIndexHelper helper
           
private  File indexDir
           
private  boolean initComplete
           
private static org.apache.commons.logging.Log log
           
private  SAXParser saxParser
           
 
Constructor Summary
FamIndex()
          meant for prototype factory use only.
FamIndex(File path, Set<IndexRecordListener> listeners)
           
 
Method Summary
private  void addRecord(File file)
           
 Index newInstance(String path, Set<IndexRecordListener> listeners)
          Create a brand-new Index with these listeners attached.
 void update()
          The update() method will be called periodically.
 
Methods inherited from class org.wdssii.core.Index
addRecByTypeTime, addRecord, addRecordListener, getDataTypes, getFirstRecordByTime, getIndexLocation, getLastRecordByTime, getNextSelection, getNextSelection, getRecord, getRecord, getRecordsByTypeTime, numRecordsByTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log

initComplete

private boolean initComplete

indexDir

private final File indexDir

helper

private final FamIndexHelper helper

saxParser

private final SAXParser saxParser
Constructor Detail

FamIndex

public FamIndex()
meant for prototype factory use only.


FamIndex

public FamIndex(File path,
                Set<IndexRecordListener> listeners)
         throws DataUnavailableException
Throws:
DataUnavailableException
Method Detail

update

public void update()
Description copied from class: Index
The update() method will be called periodically. The implementation is allowed to ignore update() calls that happen at inconvenient times.

Specified by:
update in class Index

addRecord

private void addRecord(File file)

newInstance

public Index newInstance(String path,
                         Set<IndexRecordListener> listeners)
                  throws DataUnavailableException
Description copied from class: Index
Create a brand-new Index with these listeners attached.

Specified by:
newInstance in class Index
Throws:
DataUnavailableException