1. 17 Jun, 2003 1 commit
  2. 12 Feb, 2003 1 commit
  3. 03 Dec, 2002 1 commit
    • JarFile.java (manifest): Not final. · 9c1180ea
              * java/util/jar/JarFile.java (manifest): Not final.
              (manifestRead): New field.
              (JarFile): Don't read Manifest in constructor.
              (getManifest): New method.
              (JarEnumeration.nextElement): Use new method.
              (getEntry): Likewise.
              * java/util/zip/ZipFile.java (name): Final.
              (raf): Likewsie.
              (entries): Change type to Hashtable.
              (closed): New field.
              (ZipFile): Don't read enties in constructor.
              (readEntries): Use Hashtable.
              (close): Set new close flag and set entries to null inside
              synchronized block.
              (entries): Contruct enumeration using new getEntries() method and
              entries Hashtable.
              (getEntryIndex): Removed.
              (getEntries): New method.
              (getEntry): Use new getEntries() method and entries Hastable.
              (getInputStream): Likewise.
              (size): Return getEntries().size().
              (ZipEntryEnumeration): Wrap entries Hashtable elements.
              * java/util/zip/ZipEntry.java (cal): Don't initialize.
              (time): Removed
              (dostime): New field.
              (zipFileIndex): Removed.
              (ZipEntry(ZipEntry)): Copy dostime.
              (setDOSTime): Now final and doesn't convert dos time.
              (getDOSTime): Likewise.
              (setTime): Convert dos time.
              (getTime): Likewise.
              (getCalendar): New method.
              (setExtra): Use setTime().
              * java/util/zip/ZipInputStream.java (getNextEntry): Format error msg.
      
      From-SVN: r59785
      Mark Wielaard committed
  4. 03 Nov, 2002 1 commit
    • GNU Classpath merge. · de36f65d
      2002-10-31  Stephen Crawley  <crawley@dstc.edu.au>
      
      	* java/lang/Double.java (valueOf): Return new Double(parseDouble(s)).
      
      2002-10-31  Wu Gansha <gansha.wu@intel.com>:
      
              * java/util/ArrayList.java (readObject, writeObject): Only read/write
              size items.
      
      2002-10-31  Wu Gansha <gansha.wu@intel.com>:
      
              * java/io/DataInputStream.java (convertFromUTF): Give StringBuffer an
              initial estimated size to avoid enlarge buffer frequently.
      
      2002-10-31  Wu Gansha <gansha.wu@intel.com>:
      
      	* java/lang/reflect/Proxy.java (ProxyType): Set loader to System
      	ClassLoader when null.
      	(ProxyType.hashCode): Loader null check no longer needed.
      	(ProxyType.sameTypes): New method.
      	(ProxyType.equals): Use new method.
      
      2002-10-31  Mark Wielaard  <mark@klomp.org>
      
              * java/net/URLDecoder.java (decode): Initialize Stringbuffer size to
      	length of String.
      	* java/net/URLEncoder.java (encode): Likewise.
      
      2002-10-31  Mark Wielaard  <mark@klomp.org>
      
      	* java/util/zip/ZipInputStream.java (getNextEntry): Throw IOException
      	when stream is closed.
      	(closeEntry): Likewise.
      	(read): Likewise.
      	* java/util/zip/ZipOutputStream.java (putNextEntry): Throw
      	ZipException when no entry active.
      	(closeEntry): Likewise.
      	(write): Likewise.
      
      From-SVN: r58772
      Mark Wielaard committed
  5. 25 Sep, 2002 1 commit
  6. 15 Jun, 2002 1 commit
    • InflaterInputStream.java (read): Loop if data has been read but none output by inflater. · 5f51b048
      	* 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
      Tom Tromey committed
  7. 22 Jan, 2002 1 commit
  8. 17 Nov, 2000 2 commits
  9. 20 Aug, 2000 1 commit
    • Adler32.java: Make private variables really private · 8559f9bb
      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
      Mark Wielaard committed
  10. 19 Aug, 2000 2 commits
    • ZipInputStream.java (createZipEntry): Implemented. · ea709009
      	* java/util/zip/ZipInputStream.java (createZipEntry):
      	Implemented.
      
      From-SVN: r35810
      Tom Tromey committed
    • Attributes.java, [...]: Imported from Classpath. · a729a4e9
      Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
      
      	* 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.
      
      From-SVN: r35809
      Anthony Green committed
  11. 11 May, 2000 1 commit
  12. 07 Mar, 2000 1 commit
  13. 19 Jan, 2000 1 commit
  14. 23 Jun, 1999 1 commit
    • DatagramSocketImpl.java (localPort): Fixed typo to match JDK. · 05dfd09c
      	* java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
      	* 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.
      
      From-SVN: r27717
      Warren Levy committed
  15. 22 May, 1999 1 commit
    • ZipInputStream.java (fill): New method. · 93d627ac
      	* java/util/zip/ZipInputStream.java (fill): New method.
      	(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.
      
      From-SVN: r27105
      Tom Tromey committed
  16. 18 May, 1999 1 commit
    • ZipOutputStream.java (level): Initial value is Deflater.DEFAULT_COMPRESSION. · 0ffac832
      	* 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
      Tom Tromey committed
  17. 06 May, 1999 1 commit