MODE-1561 - Added the writeLimit parameter to the TikaTextExtractor.

However, in implementing this, I stumbled across https://issues.apache.org/jira/browse/TIKA-1069. To the current code contains a TODO around the fix for this issue.

This should be merged in 3.1.x and cherry picked into master.