org.apache.lucene.demo
Class FileDocument

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

public class FileDocument
extends Object

A utility for making Lucene Documents from a File.


Method Summary
static Document Document(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
 

Method Detail

Document

public static Document Document(File f)
                         throws FileNotFoundException
Makes a document for a File.

The document has three fields:



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