org.apache.lucene.demo
Class FileDocument

java.lang.Object
  extended by org.apache.lucene.demo.FileDocument

public class FileDocument
extends java.lang.Object

A utility for making Lucene Documents from a File.


Constructor Summary
private FileDocument()
           
 
Method Summary
static org.apache.lucene.document.Document Document(java.io.File f)
          Makes a document for a File.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDocument

private FileDocument()
Method Detail

Document

public static org.apache.lucene.document.Document Document(java.io.File f)
                                                    throws java.io.FileNotFoundException
Makes a document for a File.

The document has three fields: