public class ExtensionFileHandler extends java.lang.Object
Constructor and Description |
---|
ExtensionFileHandler(java.util.Properties p)
Creates a new Extension File Handler
|
Modifier and Type | Method and Description |
---|---|
IDoc |
getDocument(java.io.File file)
Handle a file, obtaining a Lucene Document from it, if it
knows how to process this file type.
|
public ExtensionFileHandler(java.util.Properties p) throws java.io.IOException
p
- Properties that allow the correct class to be called for each extensionjava.io.IOException
public IDoc getDocument(java.io.File file) throws FileHandlerException, FileAlreadyExistsException
file
- File to be handledFileHandlerException
FileAlreadyExistsException