net.sf.gumshoe.indexer
Class ContentReaderFactory

java.lang.Object
  extended by net.sf.gumshoe.indexer.ContentReaderFactory

public class ContentReaderFactory
extends java.lang.Object

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

Field Summary
protected  java.util.logging.Logger logger
           
 
Method Summary
static java.lang.String getBaseName(java.io.File f)
          Returns the base name of the file.
 org.apache.lucene.document.Document getDocument(java.io.File f)
           
static java.lang.String getExtension(java.io.File f)
           
static ContentReaderFactory getInstance()
           
 ContentReader getReader(java.io.File f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected java.util.logging.Logger logger
Method Detail

getInstance

public static ContentReaderFactory getInstance()

getDocument

public org.apache.lucene.document.Document getDocument(java.io.File f)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

getReader

public ContentReader getReader(java.io.File f)
Parameters:
f - file to processed
Returns:
reader for this file/extension

getExtension

public static java.lang.String getExtension(java.io.File f)

getBaseName

public static java.lang.String getBaseName(java.io.File f)
Returns the base name of the file.



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