David Daney wrote:
The basic problem was that ChunkedInputStream.skip() would skip on the underlying InputStream. This bypassed the byte counting of the chunked protocol resulting in failure on reads following the skip.The fix is to extent InputStream instead of FilterInputStream, as its skip method magically does the right thing. This requires that an implementation of available() and close() also be supplied. We can also use the super class' implementation of read(byte[]), so I removed that as well.I am going to test this patch a bit more, but I think it is generally the right approach.Comments?
All looks very good. -- 犬 Chris Burdess "They that can give up essential liberty to obtain a little safety deserve neither liberty nor safety." - Benjamin Franklin
PGP.sig
Description: This is a digitally signed message part
