|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.ant.TextDocument
public class TextDocument
A utility for making Lucene Documents from a File.
| Constructor Summary | |
|---|---|
TextDocument(java.io.File file)
Constructor for the TextDocument object |
|
| Method Summary | |
|---|---|
static Document |
Document(java.io.File f)
Makes a document for a File. |
java.lang.String |
getContents()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextDocument(java.io.File file)
throws java.io.IOException
file - Description of Parameter
java.io.IOException - Description of Exception| Method Detail |
|---|
public static Document Document(java.io.File f)
throws java.io.IOException
The document has a single field:
contents--containing the full contents
of the file, as a Text field;
f - Description of Parameter
java.io.IOException - Description of Exceptionpublic java.lang.String getContents()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||