Hi,
I'm trying to implement a sort of fallback parser for PDF: I want to use
the default PDF parser and, checking the result, decide to call a different
custom parser.
When I try to call the reset() method on the TikaInputStream, I get an
exception like this:

Caused by: java.io.IOException: Resetting to invalid mark

at java.io.BufferedInputStream.reset(BufferedInputStream.java:448)

at org.apache.tika.io.ProxyInputStream.reset(ProxyInputStream.java:168)


Is it correct to call the reset() method or should I do something different
before calling a parse method on the same stream? Or is that impossibile?


Thank you

Andrea

Reply via email to