public class TextDocument extends Object
Constructor and Description |
---|
TextDocument(File file)
Constructor for the TextDocument object
|
public TextDocument(File file) throws IOException
file
- Description of ParameterIOException
- Description of Exceptionpublic static 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-2013 Apache Software Foundation. All Rights Reserved.