ZipInputStream.java (createZipEntry): Implemented.
authorTom Tromey <tromey@cygnus.com>
Sat, 19 Aug 2000 19:54:36 +0000 (19:54 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sat, 19 Aug 2000 19:54:36 +0000 (19:54 +0000)
* java/util/zip/ZipInputStream.java (createZipEntry):
Implemented.

From-SVN: r35810

libjava/ChangeLog
libjava/java/io/ByteArrayOutputStream.java
libjava/java/util/zip/ZipInputStream.java

index 4ca76d32785c44c276fe14edd2f1a1fe5f9491d5..2638d0d7b53b4862db9d51239e683a87ef2d69e0 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-19  Tom Tromey  <tromey@cygnus.com>
+
+       * java/util/zip/ZipInputStream.java (createZipEntry):
+       Implemented.
+
 Sat Aug 19 11:00:53 2000  Anthony Green  <green@redhat.com>
 
        * java/util/jar/Attributes.java, java/util/jar/JarEntry.java,
index 5fba5c5918039acfd5987a7da4268a02a45015bd..e72421e0d381a2f6943e81ccd1409040832223fd 100644 (file)
@@ -247,10 +247,11 @@ public class ByteArrayOutputStream extends OutputStream
 
   static
   {
-    initial_buffer_size
+    int r
       = Integer.getInteger ("gnu.java.io.ByteArrayOutputStream.initialBufferSize",
                            DEFAULT_INITIAL_BUFFER_SIZE).intValue ();
-    if (initial_buffer_size <= 0)
-      initial_buffer_size = DEFAULT_INITIAL_BUFFER_SIZE;
+    if (r <= 0)
+      r = DEFAULT_INITIAL_BUFFER_SIZE;
+    initial_buffer_size = r;
   }
 }
index 3532096198291c27b4e8373fd4e1e615dd405901..a147b228a69aa0e2d06c8878e90b0088656e8371 100644 (file)
@@ -125,8 +125,7 @@ public class ZipInputStream extends InflaterInputStream implements ZipConstants
 
   protected ZipEntry createZipEntry (String name)
   {
-    // FIXME - must figure out what this is supposed to do.
-    return null;
+    return new ZipEntry (name);
   }
   
   public int read (byte[] b, int off, int len)  throws IOException