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);
....
 public PdfReader(final InputStream is, final byte ownerPassword[]) throws
IOException {
        this(
                        new *RandomAccessSourceFactory().createSource(is)*,
.....
public RandomAccessSource createSource(InputStream is) throws IOException{
       try {
                return createSource(StreamUtil.inputStreamToArray(is));
        }
        finally {
            try {*is.close()*;}catch(IOException ioe){}
        }               
        }

It seems that now isn't possible to read through an InputStream without
closing it.
Is it correct? What I'm wrong?

Thanks in advance
Andrea.





--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/PdfReader-close-the-given-InputStream-tp4660430.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to