org.apache.lucene.ant

Class TextDocument

public class TextDocument extends Object

A utility for making Lucene Documents from a File.

Author: Erik Hatcher

UNKNOWN: December 6, 2001 Fix JavaDoc comments here

Constructor Summary
TextDocument(File file)
Constructor for the TextDocument object
Method Summary
static DocumentDocument(File f)
Makes a document for a File.
StringgetContents()

Constructor Detail

TextDocument

public TextDocument(File file)
Constructor for the TextDocument object

Parameters: file Description of Parameter

Throws: IOException Description of Exception

Method Detail

Document

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

The document has a single field:

getContents

public String getContents()

Returns: The contents value

UNKNOWN: finish this method

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