Folks, Is there any workaround for releasing the resources used by TikaInputStream, when it wraps around a "normal" InputStream, WITHOUT closing the stream?
For example, to correctly detect certain Office formats (e.g., .xlsx files), one has to use a TikaInputStream. But what if the method doing the detection can only be invoked via an InputStream which it cannot close? In this occasion, the temporary files are left in the /tmp directory, progressively filling up the hard disk. Would it be difficult to, say, add a release() method in the TikaInputStream class?