org.apache.lucene.ant

Class FileExtensionDocumentHandler

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

UNKNOWN: October 28, 2001 Implement dynamic document type lookup

Method Summary
DocumentgetDocument(File file)
Gets the document attribute of the FileExtensionDocumentHandler object

Method Detail

getDocument

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

Parameters: file Description of Parameter

Returns: The document value

Throws: DocumentHandlerException Description of Exception

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.