Commit 03e52420 by David Belanger Committed by Michael Koch

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
parent 32ffbe92
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> 2003-11-26 Stuart Ballard <stuart.ballard@corp.fast.net>
* java/util/HashMap.java (putAll): Use Iterator hasNext() method. * java/util/HashMap.java (putAll): Use Iterator hasNext() method.
......
...@@ -105,7 +105,7 @@ public class ZipFile implements ZipConstants ...@@ -105,7 +105,7 @@ public class ZipFile implements ZipConstants
public ZipFile(File file) throws ZipException, IOException public ZipFile(File file) throws ZipException, IOException
{ {
this.raf = new RandomAccessFile(file, "r"); this.raf = new RandomAccessFile(file, "r");
this.name = file.getName(); this.name = file.getPath();
} }
/** /**
...@@ -134,7 +134,7 @@ public class ZipFile implements ZipConstants ...@@ -134,7 +134,7 @@ public class ZipFile implements ZipConstants
("OPEN_DELETE mode not supported yet in java.util.zip.ZipFile"); ("OPEN_DELETE mode not supported yet in java.util.zip.ZipFile");
} }
this.raf = new RandomAccessFile(file, "r"); this.raf = new RandomAccessFile(file, "r");
this.name = file.getName(); this.name = file.getPath();
} }
/** /**
...@@ -438,7 +438,7 @@ public class ZipFile implements ZipConstants ...@@ -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() public String getName()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment