|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IIndexer
An IIndexer
indexes ONE document at each time. It adds the document names and
the words references to an IIndex. Each IIndexer can index certain types of document, and should
not index the other files.
Method Summary | |
---|---|
java.lang.String[] |
getFileTypes()
Returns the file types the IIndexer handles. |
void |
index(IDocument document,
IIndexerOutput output)
Indexes the given document, adding the document name and the word references to this document to the given IIndex .The caller should use
shouldIndex() first to determine whether this indexer handles
the given type of file, and only call this method if so. |
void |
setFileTypes(java.lang.String[] fileTypes)
Sets the document types the IIndexer handles. |
boolean |
shouldIndex(IDocument document)
Returns whether the IIndexer can index the given document or not. |
Method Detail |
---|
java.lang.String[] getFileTypes()
IIndexer
handles.
void index(IDocument document, IIndexerOutput output) throws java.io.IOException
IIndex
.The caller should use
shouldIndex()
first to determine whether this indexer handles
the given type of file, and only call this method if so.
java.io.IOException
void setFileTypes(java.lang.String[] fileTypes)
IIndexer
handles.
boolean shouldIndex(IDocument document)
IIndexer
can index the given document or not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |