Andy Seaborne <[email protected]> writes: > Possible basis for a workaround: > > @Override > public void run() { > LangRIOT parser ; > try { > parser = RiotReader.createParser(in, lang, fsname, > rdfInputStream); > } > catch (Exception ex) { > byte[] b = new byte[0] ; > InputStream in2 = new ByteArrayInputStream(b) ; > parser = RiotReader.createParser(in2, lang, fsname, > rdfInputStream); > } > > parser.parse(); > } > > which silently discards the input.
Any comment on whether that's better or worse than my proposal to allow
calling .close() on the iterator to throw an exception from inside
the iterator?
Be seeing you,
norm
--
Norman Walsh <[email protected]> | There is no monument dedicated to the
http://nwalsh.com/ | memory of a committee.--Lester J.
| Pourciau
signature.asc
Description: PGP signature
