eTextReader.search
Class IndexingThread

java.lang.Object
  extended by java.lang.Thread
      extended by eTextReader.search.IndexingThread
All Implemented Interfaces:
java.lang.Runnable

public class IndexingThread
extends java.lang.Thread

this class' only purpose is to load the index pages during the Browser startup process in order to save time


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.io.File dex
           
private  java.lang.String dexFileName
           
 java.util.HashMap indexedWebpages
           
private  org.apache.log4j.Logger logger
           
private  java.io.File senDex
           
 java.util.HashMap sensitiveIndexedWebpages
           
 java.util.Iterator spineIterator
           
private  boolean successfulIndex
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
IndexingThread(java.lang.String dexFileName, java.util.HashMap dex, java.util.HashMap senDex, java.util.Iterator it)
           
 
Method Summary
private  void indexTextbook()
           
private  void loadIndexedTextbook()
           
 void run()
           
private  void saveTextbook()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

indexedWebpages

public java.util.HashMap indexedWebpages

sensitiveIndexedWebpages

public java.util.HashMap sensitiveIndexedWebpages

spineIterator

public java.util.Iterator spineIterator

dex

private java.io.File dex

senDex

private java.io.File senDex

dexFileName

private java.lang.String dexFileName

successfulIndex

private boolean successfulIndex

logger

private org.apache.log4j.Logger logger
Constructor Detail

IndexingThread

public IndexingThread(java.lang.String dexFileName,
                      java.util.HashMap dex,
                      java.util.HashMap senDex,
                      java.util.Iterator it)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

loadIndexedTextbook

private void loadIndexedTextbook()

indexTextbook

private void indexTextbook()

saveTextbook

private void saveTextbook()