Re: [iText-questions] PdfReader close the given InputStream

2014-10-06 Thread AndreaC.
Michael, thanks for your prompt response. I've already adopted an anonymous wrapper instance of BufferedInputStream that override the *close* method. What is confusing me is the JavaDoc sentence in PdfReader class: /** * Reads and parses a PDF document. * @param is the InputStream

[iText-questions] [SPAM] Re: PdfReader close the given InputStream

2014-10-06 Thread mkl
Andrea, AndreaC. wrote > I'm very confused about the new * > PdfRead * > class version. > > ... > > It seems that now isn't possible to read through an InputStream without > closing it. Is it correct? What I'm wrong? It's hard to contradict your source code references. Indeed, if you instant

[iText-questions] PdfReader close the given InputStream

2014-10-06 Thread AndreaC.
Hi all. I'm migrating a piece of code from iText library version 2.1.7 to latest version 5.5.3. I'm very confused about the new *PdfRead* class version. Looking on the source code I've found this hierarchy: public PdfReader(final InputStream is) throws IOException { this(is, null); .