public class FileOutputAdapter extends OutputAdapter implements IFileOutputAdapter
Learn more
The example demonstrates a typical usage of the class.
String indexFolder = "c:\\MyIndex\\";
String documentsFolder = "c:\\MyDocuments\\";
Index index = new Index(indexFolder); // Creating an index in the specified folder
index.add(documentsFolder); // Indexing documents from the specified folder
DocumentInfo[] documents = index.getIndexedDocuments(); // Getting information on indexed documents
FileOutputAdapter adapter = new FileOutputAdapter("c:\\DocumentText.htm"); // Creating a file output adapter
index.getDocumentText(documents[0], adapter); // Generating a document text into the output file
core| Constructor and Description |
|---|
FileOutputAdapter(OutputFormat outputFormat,
String filePath)
Initializes a new instance of the
FileOutputAdapter class. |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilePath()
Gets an output file path.
|
getCore, getOutputFormatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputFormatpublic FileOutputAdapter(OutputFormat outputFormat, String filePath)
FileOutputAdapter class.outputFormat - The output format.filePath - The output file path.public final String getFilePath()
getFilePath in interface IFileOutputAdapterCopyright © 2026. All rights reserved.