org.apache.lucene.ant

Class FileExtensionDocumentHandler

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.
Author:
Erik Hatcher
To Do:
Implement dynamic document type lookup

Method Summary

Document
getDocument(File file)
Gets the document attribute of the FileExtensionDocumentHandler object

Method Details

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-2007 Apache Software Foundation. All Rights Reserved.