javax.help.search
public abstract class IndexBuilder extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
indexDir |
Constructor and Description |
---|
IndexBuilder(java.lang.String indexDir)
Builds an index at indexDir.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Closes the index.
|
abstract void |
closeDocument()
Closes the document.
|
abstract java.util.Enumeration |
getStopWords()
Returns the list of stopwords for an index.
|
abstract void |
openDocument(java.lang.String name)
Opens a document to store information.
|
abstract void |
storeLocation(java.lang.String text,
int position)
Stores a concept at a given position.
|
abstract void |
storeStopWords(java.util.Enumeration stopWords)
Sets the stopwords in an index.
|
abstract void |
storeTitle(java.lang.String title)
Stores the title for the document.
|
public IndexBuilder(java.lang.String indexDir) throws java.lang.Exception
java.lang.Exception
public abstract void close() throws java.lang.Exception
java.lang.Exception
public abstract void storeStopWords(java.util.Enumeration stopWords)
public abstract java.util.Enumeration getStopWords()
public abstract void openDocument(java.lang.String name) throws java.lang.Exception
java.lang.Exception
public abstract void closeDocument() throws java.lang.Exception
java.lang.Exception
public abstract void storeLocation(java.lang.String text, int position) throws java.lang.Exception
java.lang.Exception
public abstract void storeTitle(java.lang.String title) throws java.lang.Exception
java.lang.Exception