ZipFile (Zipfile(File)): Set file path as name.
authorDavid Belanger <dbelan2@cs.mcgill.ca>
Wed, 26 Nov 2003 21:55:27 +0000 (21:55 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 26 Nov 2003 21:55:27 +0000 (21:55 +0000)
2003-11-26  David Belanger  <dbelan2@cs.mcgill.ca>

* java/util/zip/ZipFile (Zipfile(File)): Set file path as name.
(ZipFile(File,int)): Likewise.

From-SVN: r73965

libjava/ChangeLog
libjava/java/util/zip/ZipFile.java

index 260c7ce12d65520e2eee55154aa62c95e3e3e23e..bf2ffaeed6917fba0936c6cb7d9079c8b09f4b3f 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-26  David Belanger  <dbelan2@cs.mcgill.ca>
+
+       * java/util/zip/ZipFile (Zipfile(File)): Set file path as name.
+       (ZipFile(File,int)): Likewise.
+
 2003-11-26  Stuart Ballard <stuart.ballard@corp.fast.net>
 
        * java/util/HashMap.java (putAll): Use Iterator hasNext() method.
index b6bc5414d0897f71d2d19cd04b27f24f872010b0..50f489fdb5be545df8d484ff5cda3a50bb823544 100644 (file)
@@ -105,7 +105,7 @@ public class ZipFile implements ZipConstants
   public ZipFile(File file) throws ZipException, IOException
   {
     this.raf = new RandomAccessFile(file, "r");
-    this.name = file.getName();
+    this.name = file.getPath();
   }
 
   /**
@@ -134,7 +134,7 @@ public class ZipFile implements ZipConstants
          ("OPEN_DELETE mode not supported yet in java.util.zip.ZipFile");
       }
     this.raf = new RandomAccessFile(file, "r");
-    this.name = file.getName();
+    this.name = file.getPath();
   }
 
   /**
@@ -438,7 +438,7 @@ public class ZipFile implements ZipConstants
   }
   
   /**
-   * Returns the name of this zip file.
+   * Returns the (path) name of this zip file.
    */
   public String getName()
   {