|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectontea.lucene.FileDocument
public class FileDocument
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 |
|---|
private FileDocument()
| Method Detail |
|---|
public static org.apache.lucene.document.Document Document(java.io.File f)
throws java.io.FileNotFoundException
The document has three fields:
path--containing the pathname of the file, as a stored,
untokenized field;
modified--containing the last modified date of the file as
a field as created by DateTools; and
contents--containing the full contents of the file, as a
Reader field;
java.io.FileNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||