public class CmsExtractionResult extends java.lang.Object implements I_CmsExtractionResult
This data structure contains the extracted text as well as (optional) meta information extracted from the document.
META_AUTHOR, META_CATEGORY, META_COMMENTS, META_COMPANY, META_CREATOR, META_DATE_CREATED, META_DATE_LASTMODIFIED, META_KEYWORDS, META_MANAGER, META_PRODUCER, META_SUBJECT, META_TITLE| Constructor and Description |
|---|
CmsExtractionResult(java.lang.String content)
Creates a new extration result without meta information.
|
CmsExtractionResult(java.lang.String content,
java.util.Map metaInfo)
Creates a new extration result.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
Returns the extracted content as a String.
|
java.util.Map |
getMetaInfo()
Returns the extracted meta information.
|
void |
release()
Releases the information stored in this extraction result, to free up the memory used.
|
public CmsExtractionResult(java.lang.String content)
content - the extracted contentpublic CmsExtractionResult(java.lang.String content,
java.util.Map metaInfo)
content - the extracted contentmetaInfo - the extracted documnet meta informationpublic java.lang.String getContent()
I_CmsExtractionResultgetContent in interface I_CmsExtractionResultorg.opencms.search.extractors.I_CmsExtractionResult#getContent()public java.util.Map getMetaInfo()
I_CmsExtractionResult
The result Map contains all meta information extracted
by the extractor. The key is always a String, and should be one of the constants
defined in the interface. For example
I_CmsExtractionResult will contain the document title as
a String.I_CmsExtractionResult.META_TITLE
getMetaInfo in interface I_CmsExtractionResultorg.opencms.search.extractors.I_CmsExtractionResult#getMetaInfo()public void release()
I_CmsExtractionResultrelease in interface I_CmsExtractionResultorg.opencms.search.extractors.I_CmsExtractionResult#release()