diff options
author | David Belanger <dbelan2@cs.mcgill.ca> | 2003-11-26 21:55:27 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-11-26 21:55:27 +0000 |
commit | 03e524201551de39342d9275010e91e9891f2314 (patch) | |
tree | ebf41ec8c24a6a98f8912cee80585a2b99f53526 | |
parent | 32ffbe9280fddada892bdd1c0f79479170a12610 (diff) | |
download | gcc-03e524201551de39342d9275010e91e9891f2314.zip gcc-03e524201551de39342d9275010e91e9891f2314.tar.gz gcc-03e524201551de39342d9275010e91e9891f2314.tar.bz2 |
ZipFile (Zipfile(File)): Set file path as name.
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
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/util/zip/ZipFile.java | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 260c7ce..bf2ffae 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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. diff --git a/libjava/java/util/zip/ZipFile.java b/libjava/java/util/zip/ZipFile.java index b6bc541..50f489f 100644 --- a/libjava/java/util/zip/ZipFile.java +++ b/libjava/java/util/zip/ZipFile.java @@ -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() { |