|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.search.extractors.CmsExtractionResult
The result of a document text extraction.
This data structure contains the extracted text as well as (optional) meta information extracted from the document.
Field Summary |
Fields inherited from interface org.opencms.search.extractors.I_CmsExtractionResult |
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 Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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 informationMethod Detail |
public java.lang.String getContent()
I_CmsExtractionResult
getContent
in interface I_CmsExtractionResult
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_CmsExtractionResult
I_CmsExtractionResult.getMetaInfo()
public void release()
I_CmsExtractionResult
release
in interface I_CmsExtractionResult
I_CmsExtractionResult.release()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |