FileOutputAdapter
Contents
[
Hide
]
FileOutputAdapter class
Represents an output adapter that collects output into a file.
public class FileOutputAdapter : OutputAdapter
Constructors
Name | Description |
---|---|
FileOutputAdapter(OutputFormat, string) | Initializes a new instance of the FileOutputAdapter class. |
Properties
Name | Description |
---|---|
FilePath { get; } | Gets an output file path. |
OutputFormat { get; } | Gets the output format. |
Remarks
Learn more
Examples
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
See Also
- class OutputAdapter
- namespace GroupDocs.Search.Common
- assembly GroupDocs.Search