summaryrefslogtreecommitdiff
path: root/libjava/java/util/zip/InflaterInputStream.java
AgeCommit message (Collapse)Author
2006-03-10re PR libgcj/25713 (GZIPOutputStream bad checksum)Tom Tromey
libjava PR libgcj/25713: * java/util/zip/Deflater.java (flush): New method. * sources.am, Makefile.in: Rebuilt. * java/util/zip/DeflaterOutputStream.java: Removed. * java/util/zip/InflaterInputStream.java: Likewise. * java/util/zip/GZIPInputStream.java: Likewise. * java/util/zip/GZIPOutputStream.java: Likewise. libjava/classpath For PR libgcj/25713: * java/util/zip/InflaterInputStream.java (read): Replaced with libgcj implementation. From-SVN: r111949
2006-03-09re PR libgcj/24461 (array access in either GZIPInputStream, Inflater, ↵Tom Tromey
natInflate.cc, or zlib) PR libgcj/24461: * java/util/zip/InflaterInputStream.java (fill): Throw exception if stream is truncated. From-SVN: r111870
2005-06-30Update FSF addressKelley Cook
From-SVN: r101453
2005-02-10InflaterInputStream.java (markSupported): Override.Tom Tromey
* java/util/zip/InflaterInputStream.java (markSupported): Override. (mark, reset): Likewise. From-SVN: r94792
2004-11-07CheckedInputStream.java, [...]: Import cleanups.Michael Koch
2004-11-06 Michael Koch <konqueror@gmx.de> * java/util/zip/CheckedInputStream.java, java/util/zip/InflaterInputStream.java, java/util/zip/ZipFile.java, java/util/zip/ZipInputStream.java: Import cleanups. From-SVN: r90220
2004-10-21InflaterInputStream.java (fill): Don't throw an exception if we hit EOF of `in'.Tom Tromey
* java/util/zip/InflaterInputStream.java (fill): Don't throw an exception if we hit EOF of `in'. (read): Handle case where inflating returns -1. From-SVN: r89395
2004-09-22re PR java/14446 (GZIPInputStream: corrupted gzip file - crc mismatch)Tom Tromey
PR libgcj/14446: * java/util/zip/GZIPInputStream.java (read): Avoid sign extension when comparing CRCs. * java/util/zip/InflaterInputStream.java (onebytebuffer): New field. (read()): New overload. From-SVN: r87882
2004-07-302004-07-30 Michael Koch <konqueror@gmx.de>Michael Koch
* java/util/zip/GZIPInputStream.java (GZIPInputStream): Increase buffer size to 4k. * java/util/zip/GZIPOutputStream.java (GZIPOutputStream): Likewise. * java/util/zip/Inflater.java (setInput): Merged formating with GNU classpath. * java/util/zip/InflaterInputStream.java (InflaterInputStream): Increase buffer size to 4k. (fill): Throw exception if stream ends early. (read): Merged endless-loop with GNU classpath. (skip): Increase buffer size to 2k. From-SVN: r85340
2004-07-09DeflaterOutputStream.java, [...]: Reformatted.Michael Koch
2004-07-09 Michael Koch <konqueror@gmx.de> * java/util/zip/DeflaterOutputStream.java, java/util/zip/GZIPInputStream.java, java/util/zip/GZIPOutputStream.java, java/util/zip/InflaterInputStream.java: Reformatted. Added javadocs. Reordered all stuff. Renamed variables to be more clear. From-SVN: r84380
2004-05-31InflaterInputStream.java: Merged more with Classpath version.Michael Koch
2004-06-01 Michael Koch <konqueror@gmx.de> * java/util/zip/InflaterInputStream.java: Merged more with Classpath version. * java/util/zip/ZipOutputStream.java (): Renamed enum to e to removed Java 1.5 keyword usage. From-SVN: r82509
2004-01-24InflaterInputStream.java: Merged class documentation with classpath.Michael Koch
2004-01-24 Michael Koch <konqueror@gmx.de> * java/util/zip/InflaterInputStream.java: Merged class documentation with classpath. From-SVN: r76519
2003-10-152003-10-15 Michael Koch <konqueror@gmx.de>Michael Koch
* java/util/zip/InflaterInputStream.java (InflaterInputStream): Renamed infl to inf and bufsize to size, added description to exception, check for inf == null and size < 0. From-SVN: r72519
2003-06-192003-06-19 Michael Koch <konqueror@gmx.de>Michael Koch
* java/util/zip/InflaterInputStream.java (InflaterInputStream): Throw NullPointerException if in is null (as JDK does). From-SVN: r68197
2003-02-13InflaterInputStream.java (read): Return zero when len is zero.Mark Wielaard
* java/util/zip/InflaterInputStream.java (read): Return zero when len is zero. From-SVN: r62872
2002-06-15InflaterInputStream.java (read): Loop if data has been read but none output ↵Tom Tromey
by inflater. * java/util/zip/InflaterInputStream.java (read): Loop if data has been read but none output by inflater. * java/util/zip/natDeflater.cc (reset): Set is_finished. * java/util/zip/natInflater.cc (reset): Set dist_needed and is_finished. * java/util/zip/ZipOutputStream.java: Replaced with Classpath version. * java/util/zip/ZipFile.java: Replaced with Classpath version. * java/util/zip/ZipEntry.java: Replaced with Classpath version. * java/util/zip/ZipInputStream.java: Replaced with Classpath version. * java/util/zip/ZipConstants.java: Replaced with Classpath version. From-SVN: r54653
2002-01-22Add license clarification.Mark Wielaard
From-SVN: r49104
2000-11-29Check this.len, not len, when determining if there is no more input data.Bryce McKinlay
From-SVN: r37847
2000-11-29InflaterInputStream (read): Don't return -1 unless the infate() call didn't ↵Bryce McKinlay
deliver any output. * java/util/zip/InflaterInputStream (read): Don't return -1 unless the infate() call didn't deliver any output. Throw a ZipException if the needsDictionary() call returns true. * java/io/ByteArrayInputStream (read): Remove redundant bounds checks. * java/io/InputStreamReader: Use the default buffer size for the contained BufferedInputStream. From-SVN: r37846
2000-11-17* java/util/zip/*.java: Javadoc and copyright updates.Mark Wielaard
From-SVN: r37526
2000-11-17CollationKey.java: Implement Comparable.Tom Tromey
* java/text/CollationKey.java: Implement Comparable. (compareTo(Object)): New method. * java/text/Collator.java (compare(Object,Object)): New method. Implement Comparator. * java/util/zip/InflaterInputStream.java (available): New method. (close): New method. (read, available, skip, fill): Throw exception if stream closed. * java/util/zip/ZipInputStream.java (read, skip, readFully, fill, getNextEntry): Throw exception if closed. From-SVN: r37525
2000-08-24InflaterInputStream.java (read(byte[],int,int)): return -1 when fill() has ↵Mark Wielaard
no more data for the Inflater. * java/util/zip/InflaterInputStream.java (read(byte[],int,int)): return -1 when fill() has no more data for the Inflater. From-SVN: r35963
2000-08-20Adler32.java: Make private variables really privateMark Wielaard
2000-08-20 Mark Wielaard <mark@klomp.org> * java/util/zip/Adler32.java: Make private variables really private * java/util/zip/CRC32.java: Make private variables really private * java/util/zip/CheckedInputStream.java: skip() could skip to much bytes * java/util/zip/InflaterInputStream.java: skip() could skip to much bytes * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input * java/util/zip/ZipFile.java: size() new 1.2 method * java/util/zip/ZipInputStream.java: Use createZipEntry not new ZipEntry. since 1.2 available() always returns just 1 or 0 when closed From-SVN: r35826
2000-03-07All files: Updated copyright information.Tom Tromey
* All files: Updated copyright information. * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. From-SVN: r32387
2000-01-19* All files: Updated copyright to reflect Cygnus purchase.Tom Tromey
From-SVN: r31504
1999-06-23InflaterInputStream.java (read): Throw ZipException if inflater throws a ↵Tom Tromey
DataFormatException. * java/util/zip/InflaterInputStream.java (read): Throw ZipException if inflater throws a DataFormatException. From-SVN: r27719
1999-05-18ZipOutputStream.java (level): Initial value is Deflater.DEFAULT_COMPRESSION.Tom Tromey
* java/util/zip/ZipOutputStream.java (level): Initial value is Deflater.DEFAULT_COMPRESSION. (close): New method. (closeEntry): Likewise. (finish): Likewise. (put_version): Likewise. (write_entry): Likewise. (put2, put4): Now return `int'. (comment): Default to empty string. (bytes_written): New instance variable. (chain): Likewise. * java/util/zip/ZipEntry.java (setComment): Limit length of comment string. (setCrc): Check CRC validity. (setExtra): Check argument validity. (setMethod): Likewise. (setSize): Likewise. (ZipEntry): Likewise. * include/javaprims.h: Updated namespace declarations. * Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Mention new files. (nat_source_files): Likewise. * java/util/zip/ZipFile.java (readu2): Throw ZipException, not EOFException. (read4): Likewise. (getInputStream): Handle compressed entries. * java/util/zip/GZIPOutputStream.java: New file. * java/util/zip/GZIPInputStream.java: New file. * java/util/zip/DataFormatException.java: New file. * java/util/zip/CheckedInputStream.java: New file. * java/util/zip/CheckedOutputStream.java: New file. * java/util/zip/InflaterInputStream.java: Implemented. * java/util/zip/natInflater.cc: New file. * java/util/zip/Deflater.java: Implemented. * java/util/zip/natDeflater.cc: New file. * java/util/zip/DeflaterOutputStream.java: Implemented. * java/util/zip/ZipInputStream.java (closeZipEntry): Throw ZipException, not IOException. * java/util/zip/ZipFile.java (readDirectory): Throw ZipException, not IOException. From-SVN: r26996
1999-05-10natToolkit.cc: Added copyright header.Tom Tromey
* java/awt/natToolkit.cc: Added copyright header. * java/util/zip/InflaterInputStream.java: Added copyright header. * java/io/FilterWriter.java (FilterWriter): Removed `FIXME' comment. * java/io/SequenceInputStream.java (SequenceInputStream): Removed `FIXME' comment. (getNextStream): Likewise. From-SVN: r26857
1999-05-05InflaterInputStream.java: New stub class.Per Bothner
u * InflaterInputStream.java: New stub class. * ZipInputStream.java: New class. Partly works. * ZipConstants.java: Add two (internal) constants. * ZipEntry.java (timeFromDOS): New static (non-public) method. * ZipFile.java: Make it mostly work, except for compression. * ZipOutputStream.java: Start implementation. From-SVN: r26792