History log of /libcore/luni/src/main/java/java/util/zip/DeflaterOutputStream.java
Revision Date Author Comments
d43b9ef11a1095967a3396b246639b563e1a4128 12-Sep-2012 Kenny Root <kroot@google.com> Add consistent reasons for NullPointerException

Semi-automated replacement of empty and non-conforming
NullPointerException reason messages.

(cherry-pick of 86acc043d3334651ee26c65467d78d6cefedd397.)

Change-Id: I6d893979f5c20a50e841e32af9fd7b2d8bc9d54d
86acc043d3334651ee26c65467d78d6cefedd397 12-Sep-2012 Kenny Root <kroot@google.com> Add consistent reasons for NullPointerException

Semi-automated replacement of empty and non-conforming
NullPointerException reason messages.

Change-Id: Iedeb4b21949e973c4042ce5982dda315f2e785e1
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
71509f2a9fca846292c5cde06d8fd3e60912cc4b 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: I855be93286fc4568c6dcc8fd9b77a60019c76564
ff8234c90ecab9f1db368924bf92a5b16460f9b5 08-Mar-2011 Elliott Hughes <enh@google.com> Factor out our single-byte InputStream.read/OutputStream.write implementations.

Change-Id: I00106a51a32ea84a39256d5629369170b892a039
b9cc455ed89df1a0cf4186c92b352c9649995d96 04-Dec-2010 Elliott Hughes <enh@google.com> Use our canonical Arrays range-checking methods.

There are a handful of manual range-checkers left, thanks to specified
API that throws IllegalArgumentException instead, and a few other weird
cases.

Change-Id: I80914c2257288fc184100545aff4fd6f57bf32c9
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
f87e23abe42f2914755225133bd7cedce8a6fedb 12-Nov-2010 Jesse Wilson <jessewilson@google.com> End the deflater when closing a ZipOutputStream.

I'm not particularly happy with ZipOutputStream.close() because it
doesn't call super.close(). Fixing it to call super.close() has two
problems: finish() will be called conditionally (we want it always)
and it won't null out 'out', which is observable to subclasses.

git cherry-pick -e 1d5c4e84a256e76de529b27e7e28ed48f126fe7b
http://b/3187485

Bug: 3223687
1d5c4e84a256e76de529b27e7e28ed48f126fe7b 12-Nov-2010 Jesse Wilson <jessewilson@google.com> End the deflater when closing a ZipOutputStream.

I'm not particularly happy with ZipOutputStream.close() because it
doesn't call super.close(). Fixing it to call super.close() has two
problems: finish() will be called conditionally (we want it always)
and it won't null out 'out', which is observable to subclasses.

Change-Id: If565b2a94e4dff8cbc4815e971ab8b42b3663a84
http://b/3187485
c941a854631c4bf2369adc84887bb6dd386a1bcc 22-May-2010 Elliott Hughes <enh@google.com> Fix build.

Change-Id: I61d838fdb9147b1e488cf6c9ea0aa1e1e87f935e
b1433b3bd4dfc05426e5d9c3100b5fbaa198d8a0 21-May-2010 Elliott Hughes <enh@google.com> More messages.properties removal.

Change-Id: Ie90ca910b1d9f23565f8929c63186879932a4dc3
f33eae7e84eb6d3b0f4e86b59605bb3de73009f3 13-May-2010 Elliott Hughes <enh@google.com> Remove all trailing whitespace from the dalvik team-maintained parts of libcore.

Gentlemen, you may now set your editors to "strip trailing whitespace"...

Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
fd6bb3510c2f94d636f3572dcf5f7f4dcd1a2726 13-May-2010 Elliott Hughes <enh@google.com> Remove //$NON-NLS-\d$ cruft.

Mostly done by perl(1), with manual cleanup of the few misspelled instances.
This makes our trailing whitespace slightly worse, but I'll fix all that with
a follow-on change.

Change-Id: I0b4ca98819be6f9519c4ba980d759bd1ee1a0303
cec4dd4b1d33f78997603d0f89c0d0e56e64dbcd 26-Apr-2010 Peter Hallam <peterhal@google.com> merge more modules into luni