TYPO3  7.6
Public Member Functions | List of all members
TextExtractorInterface Interface Reference
Inheritance diagram for TextExtractorInterface:
PlainTextExtractor

Public Member Functions

 canExtractText (FileInterface $file)
 
 extractText (FileInterface $file)
 

Detailed Description

An interface for text extractors

Definition at line 23 of file TextExtractorInterface.php.

Member Function Documentation

canExtractText ( FileInterface  $file)

Checks if the given file can be read by this extractor

Parameters
FileInterface$file
Returns
bool

Implemented in PlainTextExtractor.

extractText ( FileInterface  $file)

The actual text extraction.

Should return a string of the file's content

Parameters
FileInterface$file
Returns
string

Implemented in PlainTextExtractor.