net.sf.gumshoe.indexer
Class DefaultContentReader

java.lang.Object
  extended by net.sf.gumshoe.indexer.ContentReader
      extended by net.sf.gumshoe.indexer.DefaultContentReader

public class DefaultContentReader
extends ContentReader

Author:
Gabor TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
 
Fields inherited from class net.sf.gumshoe.indexer.ContentReader
CONTENTS, FILECATEGORY, FILENAME, MODIFIED
 
Constructor Summary
DefaultContentReader()
           
 
Method Summary
 java.lang.String getCategory()
          Default category is none
 org.apache.lucene.document.Document getDocument(java.io.File f)
          Generate index entry for file
 java.util.List getSupportedExtensions()
          List extensions supported by this reader
 
Methods inherited from class net.sf.gumshoe.indexer.ContentReader
addDefaultFields, getContentFromXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContentReader

public DefaultContentReader()
Method Detail

getCategory

public java.lang.String getCategory()
Default category is none

Specified by:
getCategory in class ContentReader
Returns:
category (like email, document, etc.)
See Also:
ContentReader.getCategory()

getDocument

public org.apache.lucene.document.Document getDocument(java.io.File f)
                                                throws java.lang.Exception
Description copied from class: ContentReader
Generate index entry for file

Specified by:
getDocument in class ContentReader
Parameters:
f - file to be indexed
Returns:
index entry
Throws:
java.lang.Exception

getSupportedExtensions

public java.util.List getSupportedExtensions()
Description copied from class: ContentReader
List extensions supported by this reader

Specified by:
getSupportedExtensions in class ContentReader
Returns:
list of extensions


Copyright © 2005 Gumshoe Desktop Search Developers. All Rights Reserved.