Interface I_CmsTextExtractor
- All Known Implementing Classes:
A_CmsTextExtractor
,CmsExtractorHtml
,CmsExtractorMsOfficeOLE2
,CmsExtractorMsOfficeOOXML
,CmsExtractorOpenOffice
,CmsExtractorPdf
,CmsExtractorRtf
- Since:
- 6.0.0
-
Method Summary
Modifier and TypeMethodDescriptionextractText
(byte[] content) Extracts the text and meta information from the given binary document.extractText
(byte[] content, String encoding) Extracts the text and meta information from the given binary document, using the specified content encoding.Extracts the text and meta information from the document on the input stream.extractText
(InputStream in, String encoding) Extracts the text and meta information from the document on the input stream, using the specified content encoding.
-
Method Details
-
extractText
Extracts the text and meta information from the given binary document.The encoding of the input stream is either not required (the document type may have one common default encoding) or the extractor is able to divine the encoding from the provided binary array automatically.
Delivers is the same result as calling
whenextractText(byte[], String)
String == null
.- Parameters:
content
- the binary content of the document to extract the text from- Returns:
- the extracted text
- Throws:
Exception
- if the text extration fails
-
extractText
Extracts the text and meta information from the given binary document, using the specified content encoding.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.- Parameters:
content
- the binary content of the document to extract the text fromencoding
- the encoding to use- Returns:
- the extracted text
- Throws:
Exception
- if the text extration fails
-
extractText
Extracts the text and meta information from the document on the input stream.The encoding of the input stream is either not required (the document type may have one common default encoding) or the extractor is able to divine the encoding from the provided input stream automatically.
Delivers is the same result as calling
whenextractText(InputStream, String)
String == null
.- Parameters:
in
- the input stream for the document to extract the text from- Returns:
- the extracted text and meta information
- Throws:
Exception
- if the text extration fails
-
extractText
Extracts the text and meta information from the document on the input stream, using the specified content encoding.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.- Parameters:
in
- the input stream for the document to extract the text fromencoding
- the encoding to use- Returns:
- the extracted text and meta information
- Throws:
Exception
- if the text extration fails
-