SAXException is checked, so you have to catch it or add to method throws list (or javac wouldn't compile it). Tika usually rethrows exceptions enveloping them into TikaException. In case of code above method throws SAXException.
Suppressing the exception is done to avoid parser fail after parsing valuable amount of data. -- Best regards, Konstantin Gribov. 28.03.2014 14:27 пользователь "Stefano Fornari" <[email protected]> написал: > On Fri, Mar 28, 2014 at 11:26 AM, Stefano Fornari < > [email protected] > > wrote: > > > I understood the trick, but I am trying to understand this is done in > this > > way (that at a first glance does not seem clean). > > > > ... trying to understand why this is done in this way... >
