Make DeflaterInputStream#available more consistent.

- We now guarantee that available() returns 0 iff.
  deflater.finished() == true. Note that this is still
  inconsistent with the specification of InputStream#available.

- Remove an unnecessary array copy in DeflaterInputStream#read.

- Remove tests that expect an IllegalArgumentException for
  negative skip count values. The InputStream spec doesn't mandate
  that we must throw here, and it's better to be consistent with
  every othem InputStream specialization in the code.

- Remove obsolete failures from brokentests.txt.

bug: 12189307

Change-Id: Ie9b1ad5d7c050b005b5f6f44a5a283bfdaeb1e81
3 files changed