History log of /libcore/luni/src/test/java/libcore/java/util/zip/DeflaterOutputStreamTest.java
Revision Date Author Comments
35f9da25ee063a0d0c32f7246b466cff8e57c9ee 29-Jun-2013 Elliott Hughes <enh@google.com> Add syncFlush support to GZIPOutputStream.

Bug: 3484927
Change-Id: I9a2702970fe746b1f6bbbb438e4ce830e916bad4
8601d6b5872167f20f3ab845160ae7f9e0fad94b 16-Mar-2011 Brian Carlstrom <bdc@google.com> Deflater doc and test tidying

Change-Id: If140c104d5736e41669a20af5606a54ce338d60c
e61a37593b5a93e5defe693b85971f281dbee7dc 16-Mar-2011 Brian Carlstrom <bdc@google.com> DeflaterOutputStream should output all available compressed data

In both the write and flush we were looping writing data from the
Deflater to the OutputStream until we needsInput was true. However, we
should have simply been looping until there were no bytes returned.

Bug: 4005091
Change-Id: I995ef0eeb3d3c500144f33456b5b2d15d374efcb
a321720e459ae0d7fc403d112f2e974102a59d9f 16-Mar-2011 Brian Carlstrom <bdc@google.com> Test for SYNC_FLUSH Deflater

Bug: 4005091
Change-Id: I1cbd95ed4d87966e18a601501d6db6cbb277f25c
2d9c5fa8ce0182cd8c14736241b709fd50cab6f8 23-Nov-2010 Elliott Hughes <enh@google.com> Slight cleanup of java.util.zip code, plus a bug fix.

The key fix is switching to zstream's next_in and next_out fields (the
pointers into the input and output buffers) rather than relying on the
integer "accounting" fields. If turns out in the Z_NEED_DICT case that
the accounting goes slightly awry. (We shouldn't have been using the
accounting anyway, because we were silently coercing longs to ints.)
The new code is simpler, clearer, and doesn't need a special case for
Z_NEED_DICT at all.

I've also removed yet another hand-written UTF-8 encoder, made Inflater
throw ArrayIndexOutOfBoundsExceptions with useful detail messages (factored
out into Arrays so we can make this change more widely), and
rewritten the Inflater and Deflater documentation.

The unit test reproduces the problem (and tests as many other cases as
it can too). Critical for testing this bug is that we needed to limit
the size of the input buffer so that zlib has to ask us for more input.

Bug: 3220923
Change-Id: I39e5456620eaa7f75d12d885db279f009ee3e8ef
4557728efb66c455a52b7669a8eefef7a9e54854 11-Aug-2010 Jesse Wilson <jessewilson@google.com> Moving tests to be under the libcore.* package.

This is indended to make it easier to run on VMs that restrict the packages
from which application classes can be loaded. For example, on the RI you need
to use the bootclasspath to load these tests.

Change-Id: I52193f35c5fcca18b5a3e1d280505b1e29b388af