commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Petrov <>
Subject [vfs] Why does the MonitorInputStream close the stream in read?
Date Mon, 13 Jun 2016 15:40:24 GMT
I am using Apache Tika to detect file types. Somewhere in the code it does:

if (stream.markSupported())

Which returns "true" for a MonitorInputStream. Then it does:

try {
    ... read(stream);
} finally {

Which should not be an issue as it already asked whether marking is
supported. However, due to "read" of MonitorInputStream closing the
stream, "reset" throws a " Stream closed". This is
obviously not good. Any ideas what I should do?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message