Fix buffering of file data in TikaFileTypeDetector class