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
This commit is contained in:
parent
32ffbe9280
commit
03e5242015
2 changed files with 8 additions and 3 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue