As reported by Haris Osmanagic on the user list, TikaResource closes the InputStream twice on requests for text/plain.