org.apache.lucene.ant
Class FileExtensionDocumentHandler
java.lang.Object
org.apache.lucene.ant.FileExtensionDocumentHandler
- All Implemented Interfaces:
- DocumentHandler
public class FileExtensionDocumentHandler
- extends Object
- implements DocumentHandler
A DocumentHandler implementation to delegate responsibility to
based on a files extension. Currently only .html and .txt
files are handled, other extensions ignored.
- Since:
- October 28, 2001
- To Do:
- Implement dynamic document type lookup
Method Summary |
Document |
getDocument(File file)
Gets the document attribute of the
FileExtensionDocumentHandler object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileExtensionDocumentHandler
public FileExtensionDocumentHandler()
getDocument
public Document getDocument(File file)
throws DocumentHandlerException
- Gets the document attribute of the
FileExtensionDocumentHandler object
- Specified by:
getDocument
in interface DocumentHandler
- Parameters:
file
- Description of
Parameter
- Returns:
- The document value
- Throws:
DocumentHandlerException
- Description of
Exception
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.