This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: createZipEntry


I read the docs for ZipInputStream.createZipEntry and I think this is
a reasonable implementation.

2000-08-19  Tom Tromey  <tromey@cygnus.com>

	* java/util/zip/ZipInputStream.java (createZipEntry):
	Implemented.

Tom

Index: java/util/zip/ZipInputStream.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/util/zip/ZipInputStream.java,v
retrieving revision 1.8
diff -u -r1.8 ZipInputStream.java
--- ZipInputStream.java	2000/08/19 18:19:42	1.8
+++ ZipInputStream.java	2000/08/19 19:52:53
@@ -125,8 +125,7 @@
 
   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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]