|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.search.extractors.A_CmsTextExtractor
org.opencms.search.extractors.A_CmsTextExtractorMsOfficeBase
org.opencms.search.extractors.CmsExtractorMsExcel
public final class CmsExtractorMsExcel
Extracts the text form an MS Excel document.
| Field Summary |
|---|
| Fields inherited from class org.opencms.search.extractors.A_CmsTextExtractorMsOfficeBase |
|---|
ENCODING_CP1252, ENCODING_UTF16, POWERPOINT_EVENT_NAME, PPT_TEXTBYTE_ATOM, PPT_TEXTCHAR_ATOM |
| Fields inherited from class org.opencms.search.extractors.A_CmsTextExtractor |
|---|
m_inputBuffer |
| Method Summary | |
|---|---|
protected String |
extractTableContent(InputStream in)
Extracts the text from the Excel table content. |
I_CmsExtractionResult |
extractText(InputStream in,
String encoding)
Extracts the text and meta information from the document on the input stream, using the specified content encoding. |
static I_CmsTextExtractor |
getExtractor()
Returns an instance of this text extractor. |
| Methods inherited from class org.opencms.search.extractors.A_CmsTextExtractorMsOfficeBase |
|---|
cleanup, extractMetaInformation, processPOIFSReaderEvent |
| Methods inherited from class org.opencms.search.extractors.A_CmsTextExtractor |
|---|
extractText, extractText, extractText, getStreamCopy, removeControlChars |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static I_CmsTextExtractor getExtractor()
public I_CmsExtractionResult extractText(InputStream in,
String encoding)
throws 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 in interface I_CmsTextExtractorextractText in class A_CmsTextExtractorin - the input stream for the document to extract the text fromencoding - the encoding to use
Exception - if the text extration failsI_CmsTextExtractor.extractText(java.io.InputStream, java.lang.String)
protected String extractTableContent(InputStream in)
throws IOException
in - the document input stream
IOException - if something goes wring
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||