summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/zip
Commit message (Collapse)AuthorAgeFilesLines
...
* * java/util/zip/ZipOutputStream.java (putNextEntry): Clearbothner2002-01-191-0/+1
| | | | | | | uncompressed_size in readiness for next entry. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49014 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/GZIPOutputStream.java (write(int)): New method.tromey2001-10-291-1/+7
| | | | | | | Fixes PR libgcj/4728. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46618 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/Adler32.java: Use correct class name. (Re-mergetromey2001-10-261-1/+1
| | | | | | | from Classpath.) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46561 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/Adler32.java: Merge with Classpathmark2001-10-055-52/+126
| | | | | | | | | | * java/util/zip/CRC32.java: Ditto * java/util/zip/Checksum.java: Ditto * java/util/zip/DataFormatException.java: Ditto * java/util/zip/ZipException.java: Ditto git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46035 138bc75d-0d04-0410-961f-82ee72b054a4
* * DeflaterOutputStream.java (deflate): Loop while def.needsInput.bothner2001-04-012-51/+95
| | | | | | | | | | | | | | | | | (finish): def.deflate needs to be called in a loop. (inbuf, inbufLength): New private fields. (write(int)): Use inbuf. (write(byte[],int,int): Check if pending output in inbuf. * ZipOutputStream.java: Don't use Deflater if stored. Use a Checksum object directly, not via a CheckedOutputStream. (uncompressed_size): New field, (closeEntry): Only write data_directory if needed. (write): If STORED, write directly. Always update crc, and uncompressed_size. (write_entry): Fix lots of protocol erors. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40988 138bc75d-0d04-0410-961f-82ee72b054a4
* * exception.cc (java_eh_info): Make value type jthrowable.rth2001-03-262-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (_Jv_type_matcher): Remove now unneeded cast. (_Jv_Throw): Make argument type jthrowable. Munge name for SJLJ_EXCEPTIONS here ... * gcj/cni.h: ... not here. (JvThrow): Remove. * gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations. * defineclass.cc, interpret.cc, jni.cc, posix-threads.cc, prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc, gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc, gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc, gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc, java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc, java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc, java/lang/natClass.cc, java/lang/natClassLoader.cc, java/lang/natDouble.cc, java/lang/natObject.cc, java/lang/natPosixProcess.cc, java/lang/natRuntime.cc, java/lang/natString.cc, java/lang/natSystem.cc, java/lang/natThread.cc, java/lang/reflect/natArray.cc, java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc, java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc, java/util/zip/natInflater.cc: Use throw, not JvThrow or _Jv_Throw. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40838 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/Deflater.java (update, init): Now private.tromey2000-12-211-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38420 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/natInflater.cc (inflate): Treat Z_BUF_ERROR asbryce2000-12-181-5/+10
| | | | | | | end-of-stream if avail_in is 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38338 138bc75d-0d04-0410-961f-82ee72b054a4
* Check this.len, not len, when determining if there is no more input data.bryce2000-11-291-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37847 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/InflaterInputStream (read): Don't return -1 unlessbryce2000-11-291-7/+10
| | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37846 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/*.java: Javadoc and copyright updates.mark2000-11-1718-195/+666
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37526 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/text/CollationKey.java: Implement Comparable.tromey2000-11-172-7/+35
| | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37525 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/ZipFile.java (ZipFile): Delete file when opened intromey2000-09-041-1/+1
| | | | | | | DELETE mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36144 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/gcj/awt/BitMaskExtent.java, gnu/gcj/awt/Buffers.java,tromey2000-08-291-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | gnu/gcj/awt/ComponentDataBlitOp.java, gnu/gcj/awt/GLightweightPeer.java, java/awt/Graphics2D.java, java/awt/RenderingHints.java, java/awt/color/ColorSpace.java, java/awt/color/ICC_ColorSpace.java, java/awt/color/ICC_Profile.java, java/awt/image/BufferedImage.java, java/awt/image/ColorModel.java, java/awt/image/ComponentColorModel.java, java/awt/image/ComponentSampleModel.java, java/awt/image/DataBuffer.java, java/awt/image/DataBufferByte.java, java/awt/image/DataBufferInt.java, java/awt/image/DataBufferUShort.java, java/awt/image/DirectColorModel.java, java/awt/image/IndexColorModel.java, java/awt/image/PackedColorModel.java, java/awt/image/Raster.java, java/awt/image/RasterOp.java, java/awt/image/SampleModel.java, java/awt/image/SinglePixelPackedSampleModel.java, java/awt/image/WritableRaster.java, java/util/zip/ZipFile.java: Removed Latin-1 copyright symbols. * java/util/zip/ZipFile.java: Indentation fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36027 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/ZipFile.java: Implement OPEN_DELETE mode, new constructor,mark2000-08-271-3/+32
| | | | | | | | close can delete the file, finalize calls close. * java/util/jar/JarFile.java: Constructor that takes mode now calls super. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36007 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/InflaterInputStream.java (read(byte[],int,int)):mark2000-08-241-0/+2
| | | | | | | return -1 when fill() has no more data for the Inflater. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35963 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-08-20 Mark Wielaard <mark@klomp.org>mark2000-08-207-6/+25
| | | | | | | | | | | | | | * 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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35826 138bc75d-0d04-0410-961f-82ee72b054a4
* Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>green2000-08-201-1/+1
| | | | | | | | | | | | | | | | | | | * java/net/URLClassLoader.java: Find the JarEntry via the JarFile. * java/net/JarURLConnection.java: getEntry doesn't take any arguments. Return null if element is null. * java/util/zip/ZipFile.java (getInputStream): Read the compressed size from the archive, not the inflated size. * java/util/jar/JarFile.java (getEntry): Don't recurse. Call java.util.zip.ZipFile.getEntry. * gij.cc (help): Change sourceware reference to sources.redhat.com. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35821 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/ZipInputStream.java (createZipEntry):tromey2000-08-191-2/+1
| | | | | | | Implemented. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35810 138bc75d-0d04-0410-961f-82ee72b054a4
* Sat Aug 19 11:00:53 2000 Anthony Green <green@redhat.com>green2000-08-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/util/jar/Attributes.java, java/util/jar/JarEntry.java, java/util/jar/JarException.java, java/util/jar/JarFile.java, java/util/jar/JarInputStream.java, java/util/jar/JarOutputStream.java, java/util/jar/Manifest.java, java/util/Set.java, java/util/Map.java, java/util/Bucket.java, java/util/AbstractSet.java, java/util/BasicMapEntry.java, java/security/cert/CRL.java, java/security/cert/CRLException.java, java/security/cert/Certificate.java, java/security/cert/CertificateEncodingException.java, java/security/cert/CertificateException.java, java/security/cert/CertificateExpiredException.java, java/security/cert/CertificateFactory.java, java/security/cert/CertificateFactorySpi.java, java/security/cert/CertificateNotYetValidException.java, java/security/cert/CertificateParsingException.java, java/security/cert/X509CRL.java, java/security/cert/X509CRLEntry.java, java/security/cert/X509Certificate.java, java/security/cert/X509Extension.java: Imported from Classpath. * java/util/Hashtable.java: Imported from Classpath. * java/util/zip/ZipInputStream.java: Create stub for createZipEntry. * gcj/javaprims.h: Updated class list. * Makefile.in, gcj/Makefile.in: Rebuilt. * Makefile.am (ordinary_java_source_files): Add these new classes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35809 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-05-202-2/+5
| | | | | | | | | | | | | | | | Fix for PR libgcj/226: * java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect, since this is an installed header. Fix for PR libgcj/228: * java/util/zip/ZipFile (getInputStream): Create inflater with nowrapper option. * java/util/zip/natInflater.cc (inflate): Throw zlib's error message with DataFormatException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34064 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-05-201-1/+20
| | | | | | | | | | | * java/util/zip/ZipEntry.java: Implement Cloneable, per JDK1.2 docs. (ZipEntry): Copy the Name' field. (clone): Implement JDK1.2 method. (setCompressedSize): ditto. (hashCode): ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34043 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/ZipInputStream.java (getNextEntry): When readingtromey2000-05-111-2/+8
| | | | | | | file headers, don't include `size' in the skip call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33850 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Locale.java (Locale): Don't explicitly check fortromey2000-05-041-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | null. * java/util/Hashtable.java (containsKey): Don't explicitly check for null. (get): Likewise. * java/util/BitSet.java (and, or, xor): Don't explicitly check for null. * java/util/zip/ZipEntry.java (ZipEntry): Don't explicitly check for null. * java/text/StringCharacterIterator.java (StringCharacterIterator): Don't check for null. * java/text/ChoiceFormat.java (setChoices): Don't explicitly check for null pointer. * java/net/MulticastSocket.java (joinGroup): Don't explicitly check for null pointer. (leaveGroup): Likewise. * java/net/DatagramPacket.java (DatagramPacket): Removed erroneous comment. (setData): Likewise. * java/lang/ThreadGroup.java (ThreadGroup): Don't explicitly check for `p==null'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33671 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/Vector.java (VectorEnumeration): Now `final'.tromey2000-04-111-2/+2
| | | | | | | | | | * java/util/Hashtable.java (HashtableEntry): Now `final'. (HashtableEnumeration): Likewise. * java/util/zip/ZipFile.java (ZipEnumeration): Now `final'. * java/text/RuleBasedCollator.java (RBCElement): Now `final'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33083 138bc75d-0d04-0410-961f-82ee72b054a4
* * All files: Updated copyright information.tromey2000-03-0720-20/+20
| | | | | | | | | * COPYING: New file. * COPYING.LIB: Removed. * LIBGCJ_LICENSE: We now use GPL + special exception. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32387 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-02-28 Mo DeJong <mdejong@cygnus.com>tromey2000-02-291-1/+1
| | | | | | | | * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed error caused by the incorrect casting of a long to an int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32257 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-02-28 Mo DeJong <mdejong@cygnus.com>tromey2000-02-291-3/+3
| | | | | | | | * java/util/zip/ZipOutputStream.java(write_entry) : Fixed SIGSEV caused by use of the wrong instance variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32256 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-02-191-2/+2
| | | | | | | | * java/util/zip/ZipEntry.java (setCrc): Fix overflow. (setSize): ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32062 138bc75d-0d04-0410-961f-82ee72b054a4
* * All files: Updated copyright to reflect Cygnus purchase.tromey2000-01-1920-20/+20
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31504 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/ZipFile.java: Compute the offset of the ZipEntrygreen1999-11-071-4/+7
| | | | | | | data correctly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30439 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Rebuilt.tromey1999-09-102-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Build include/Makefile. * Makefile.in: Rebuilt. * Makefile.am (SUBDIRS): Added gcj and include. (install-data-local): New target. (extra_headers): New macro. * include/Makefile.in: New file. * include/Makefile.am: New file. * interpret.cc: Don't include gcj/field.h or gcj/cni.h. * java/lang/reflect/natField.cc: Don't include gcj/field.h or gcj/cni.h. * boehm.cc: Don't include java-threads.h or gcj/field.h. * resolve.cc: Include config.h. * defineclass.cc: Include config.h. * include/java-interp.h: Don't include config.h. * include/jvm.h: Include java-threads.h, Object.h, java-gc.h, cni.h. * gcj/javaprims.h: Regenerated namespace decls. * classes.pl (scan): Don't put `;' after closing brace. * Makefile.in: Rebuilt. * Makefile.am (INCLUDES): Added -I for top_srcdir. * configure.in: Create gcj/Makefile. * gcj/Makefile.in: New file. * gcj/Makefile.am: New file. * java/lang/Object.h: Don't include any other headers. * gcj/array.h: Renamed from include/java-array.h. * gcj/field.h: Renamed from include/java-field.h. * gcj/method.h: Renamed from include/java-method.h. * gcj/cni.h, gcj/javaprims.h: Moved from include/. Updated all files to reflect new include structure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29278 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Renamedkrab1999-08-182-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from _Jv_InternClassStrings. * prims.cc (_Jv_RunMain): New function. (JvRunMain): Remove gij-support. * gij.cc (main): Use _Jv_RunMain. * java/util/zip/ZipFile.java: Call readDirectory in constructor. * interpret.cc (PUSHA, PUSHI, PUSHF, PUSHL, PUSHD): Don't store argument in temp variable. (continue1): For all op_x2y insns, use temp variable for intermediate value. Also remove some comments. * java/lang/natClass.cc (newInstance): Call _Jv_InitClass. (forName): Don't call _Jv_InitClass. * java/lang/Class.java (getResource,getResourceAsStream): Implement. * java/util/zip/ZipEntry.java (ZipEntry(ZipEntry)): New construcor. * java/util/jar/JarInputStream.java: New file. * java/util/jar/JarEntry.java: New file. * java/util/jar/JarFile.java: New file. * java/net/URLClassLoader.java: New file. * java/net/JarURLConnection.java: New file. * gnu/gcj/protocol/jar/Handler.java: New file. * gnu/gcj/protocol/jar/Connection.java: New file. * java/security/SecureClassLoader.java: New file. * java/lang/ClassLoader.java (parent): New variable. (ClassLoader (ClassLoader)): new constructor. (findClass): New method. (loadClass): Add default 1.2 implementation. (getSystemResourceAsBytes, getResourceAsBytes): Removed. (readfully): Removed. * gnu/gcj/runtime/VMClassLoader.java: Moved from java/lang. (findSystemClass): New method. (VMClassLoader): Constructor rewritten. (init): New method. All other methods removed. * java/lang/natClassLoader.cc: Change use of java::lang::VMClassLoader to gnu::gcj::runtime::VMClassLoader. (_Jv_InternClassStrings): Use _Jv_ResolvePoolEntry. Also handle class entries. (VMClassLoader::findSystemClass): renamed from findBootClass. * Makefile.am: Add new files. (FirstThread.h, ThreadGroup.h): Add _Jv_Main friend. * Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28748 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/InflaterInputStream.java (read): Throwtromey1999-06-231-1/+8
| | | | | | | ZipException if inflater throws a DataFormatException. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27719 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.warrenl1999-06-234-6/+6
| | | | | | | | | | | | | | | | * java/net/natPlainDatagramSocketImpl.cc (bind): ditto. * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method is not final per JDK. * java/util/PropertyResourceBundle.java (handleGetObject): Method is public per JDK. * java/util/zip/DataFormatException.java: Class extends Exception. * java/util/zip/Deflater.java (finalize): Method is protected per JDK. * java/util/zip/ZipEntry.java: Class implements ZipConstants. * java/util/zip/ZipInputStream.java: ditto. (closeEntry): Changed method name to match JDK spec. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27717 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/ZipInputStream.java (fill): New method.tromey1999-05-225-18/+49
| | | | | | | | | | | | | | | | | | | | | (compressed_len): New instance variable. (getNextStream): Set it. (read): Reset inflater on EOF. Only read via `super' if entry is deflated. (skip): Only skip via `super' if entry is deflated. * java/util/zip/Deflater.java (last_input_count): Removed. * java/util/zip/natDeflater.cc (deflate): Return 0 if input array is length 0. (needsInput): Don't use last_input_count. (setInput): Don't set last_input_count. * java/util/zip/natInflater.cc (getRemaining): Return correct result. (inflate): Return 0 if input array is length 0. (setInput): Don't set last_input_count. * java/util/zip/Inflater.java (last_input_count): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27105 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/GZIPOutputStream.java (write(byte[])): Newtromey1999-05-191-0/+5
| | | | | | | method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27031 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/natInflater.cc (inflate): Cast `len' to unsigned.tromey1999-05-192-3/+7
| | | | | | | | | | Include <stdlib.h>. * java/util/zip/natDeflater.cc (deflate): Cast `len' to unsigned. Include <stdlib.h>. (update): Fail in default case. Always initialize `strat'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27028 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/util/zip/ZipOutputStream.java (level): Initial value istromey1999-05-1815-68/+1472
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26996 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/awt/natToolkit.cc: Added copyright header.tromey1999-05-101-0/+8
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26857 138bc75d-0d04-0410-961f-82ee72b054a4
* *** empty log message ***bothner1999-05-061-0/+190
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26796 138bc75d-0d04-0410-961f-82ee72b054a4
* bothner1999-05-062-6/+152
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26795 138bc75d-0d04-0410-961f-82ee72b054a4
* 8bothner1999-05-061-0/+32
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26794 138bc75d-0d04-0410-961f-82ee72b054a4
* ebothner1999-05-061-1/+6
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26793 138bc75d-0d04-0410-961f-82ee72b054a4
* ubothner1999-05-061-0/+12
| | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26792 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisiontromey1999-04-0710-0/+498
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26263 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud