Update of //cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv26721/lexer
Modified Files:
Page.java
Log Message:
implement RFE #1394144 handle deflate encoding
InflaterInputStream needed an additional Inflater argument.
Index: Page.java
===================================================================
RCS file: //cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexer/Page.java,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** Page.java 27 May 2006 17:06:28 -0000 1.56
--- Page.java 2 Jun 2006 02:43:25 -0000 1.57
***************
*** 40,43 ****
--- 40,44 ----
import java.net.UnknownHostException;
import java.util.zip.GZIPInputStream;
+ import java.util.zip.Inflater;
import java.util.zip.InflaterInputStream;
***************
*** 564,568 ****
{
stream = new Stream (new InflaterInputStream (
! getConnection ().getInputStream ()));
}
else
--- 565,569 ----
{
stream = new Stream (new InflaterInputStream (
! getConnection ().getInputStream (), new Inflater (true)));
}
else
|