public final class CmsExtractorMsExcel extends A_CmsTextExtractorMsOfficeBase implements java.io.Serializable
cp, ENCODING_CP1252, ENCODING_UTF16, m_documentSummary, m_summary, POWERPOINT_EVENT_NAME, PPT_TEXTBYTE_ATOM, PPT_TEXTCHAR_ATOM, versionm_inputBuffer| 构造器和说明 |
|---|
CmsExtractorMsExcel(java.lang.String version)
Hide the public constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.lang.String |
extractTableContent(java.io.InputStream in)
Extracts the text from the Excel table content.
|
I_CmsExtractionResult |
extractText(java.io.InputStream in,
java.lang.String encoding)
Extracts the text and meta information from the document on the input stream, using the specified content encoding.
|
java.lang.String |
readExcel(java.io.InputStream in)
处理excel2003
|
java.lang.String |
readExcel2007(java.io.InputStream in)
处理excel2007
|
cleanup, extractMetaInformation, extractMetaInformation2003, extractMetaInformation2007, processPOIFSReaderEventextractText, extractText, extractText, getStreamCopy, removeControlCharspublic CmsExtractorMsExcel(java.lang.String version)
public I_CmsExtractionResult extractText(java.io.InputStream in, java.lang.String encoding) throws java.lang.Exception
I_CmsTextExtractor
The encoding is a hint for the text extractor, if the value given is null then
the text extractor should try to figure out the encoding itself.
extractText 在接口中 I_CmsTextExtractorextractText 在类中 A_CmsTextExtractorin - the input stream for the document to extract the text fromencoding - the encoding to usejava.lang.Exception - if the text extration failsorg.opencms.search.extractors.I_CmsTextExtractor#extractText(java.io.InputStream, java.lang.String)public java.lang.String readExcel(java.io.InputStream in)
throws java.io.IOException
path - java.io.IOExceptionpublic java.lang.String readExcel2007(java.io.InputStream in)
throws java.io.IOException
path - java.io.IOExceptionprotected java.lang.String extractTableContent(java.io.InputStream in)
throws java.io.IOException
in - the document input streamjava.io.IOException - if something goes wring