public class TextDocument extends Object
| Constructor and Description |
|---|
TextDocument(File file)
Constructor for the TextDocument object
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.lucene.document.Document |
Document(File f)
Makes a document for a File.
|
String |
getContents() |
public TextDocument(File file) throws IOException
file - Description of ParameterIOException - Description of Exceptionpublic static org.apache.lucene.document.Document Document(File f) throws IOException
The document has a single field:
contents--containing the full contents
of the file, as a Text field;f - Description of ParameterIOException - Description of Exceptionpublic String getContents()
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.