public class StringOutputAdapter extends OutputAdapter implements IStringOutputAdapter
System.String.
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
StringOutputAdapter adapter = new StringOutputAdapter(); // Creating a string output adapter
index.getDocumentText(documents[0], adapter); // Generating a document text into the adapter
String result = adapter.getResult(); // Getting a result
core| Constructor and Description |
|---|
StringOutputAdapter(OutputFormat outputFormat)
Initializes a new instance of the
StringOutputAdapter class. |
| Modifier and Type | Method and Description |
|---|---|
String |
getResult()
Gets the resulting string.
|
getCore, getOutputFormatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputFormatpublic StringOutputAdapter(OutputFormat outputFormat)
StringOutputAdapter class.outputFormat - The output format.public final String getResult()
getResult in interface IStringOutputAdapterCopyright © 2026. All rights reserved.