public class TextDocument
extends java.lang.Object
Constructor and Description |
---|
TextDocument(java.io.File file)
Constructor for the TextDocument object
|
Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.document.Document |
Document(java.io.File f)
Makes a document for a File.
|
java.lang.String |
getContents() |
public TextDocument(java.io.File file) throws java.io.IOException
file
- Description of Parameterjava.io.IOException
- Description of Exceptionpublic static org.apache.lucene.document.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 Parameterjava.io.IOException
- Description of Exceptionpublic java.lang.String getContents()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.