public class CmsDocumentMsOfficeOLE2 extends A_CmsVfsDocument
Supported formats are MS Word (.doc), MS PowerPoint (.ppt) and MS Excel (.xls).
The OLE 2 format was introduced in Microsoft Office version 97 and was the default format until Office version 2007 and the new XML-based OOXML format.
m_name| 构造器和说明 |
|---|
CmsDocumentMsOfficeOLE2(java.lang.String name)
Creates a new instance of this lucene document factory.
|
| 限定符和类型 | 方法和说明 |
|---|---|
I_CmsExtractionResult |
extractContent(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Returns the raw text content of a given vfs resource containing MS Word data.
|
boolean |
isLocaleDependend()
Returns
true if this document factory is locale depended. |
boolean |
isUsingCache()
Returns
true if result caching is supported for this factory. |
createDocument, getCache, getDocumentKey, getDocumentKeys, getName, logContentExtraction, readFile, setCachepublic CmsDocumentMsOfficeOLE2(java.lang.String name)
name - name of the documenttypepublic I_CmsExtractionResult extractContent(CmsObject cms, CmsResource resource, CmsSearchIndex index) throws CmsIndexException, CmsException
cms - the cms objectresource - the resource to extract the content fromindex - the index to extract the content forCmsException - if something goes wrongCmsIndexExceptionI_CmsSearchExtractor.extractContent(CmsObject, CmsResource, CmsSearchIndex)public boolean isLocaleDependend()
I_CmsDocumentFactorytrue if this document factory is locale depended.true if this document factory is locale dependedI_CmsDocumentFactory.isLocaleDependend()public boolean isUsingCache()
I_CmsDocumentFactorytrue if result caching is supported for this factory.true if result caching is supported for this factoryI_CmsDocumentFactory.isUsingCache()