summaryrefslogtreecommitdiff
path: root/java/util/zip/ZipFile.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2003-11-25 22:29:51 +0000
committerMark Wielaard <mark@klomp.org>2003-11-25 22:29:51 +0000
commit0eda0b88fb4cd09cf3fb0a282c2a7f416a8e720d (patch)
treeb6c83b4416bc5fe1791e6e24c9046f012c916fee /java/util/zip/ZipFile.java
parent84291387d20fe2422183c2d7a6f6bca18a2ab1d7 (diff)
downloadclasspath-0eda0b88fb4cd09cf3fb0a282c2a7f416a8e720d.tar.gz
2003-11-25 David Belanger <dbelan2@cs.mcgill.ca>
* java/util/zip/ZipFile (Zipfile(File)): Set file path as name. (ZipFile(File,int)): Likewise.
Diffstat (limited to 'java/util/zip/ZipFile.java')
-rw-r--r--java/util/zip/ZipFile.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/util/zip/ZipFile.java b/java/util/zip/ZipFile.java
index b6bc5414d..50f489fdb 100644
--- a/java/util/zip/ZipFile.java
+++ b/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()
{