public class ZipFileImpl extends Object implements IFile
| Constructor and Description |
|---|
ZipFileImpl(File zip1,
ZipEntry entry1,
ZipDirectory parent1,
ZipCloseableDirectory cache)
This constructor is used to create a file entry within the zip.
|
ZipFileImpl(ZipFileImpl other,
ZipCloseableDirectory cache) |
| Modifier and Type | Method and Description |
|---|---|
IDirectory |
convert() |
IDirectory |
convertNested() |
boolean |
equals(Object obj) |
long |
getLastModified() |
String |
getName() |
String |
getNameInZip() |
IDirectory |
getParent() |
IDirectory |
getRoot() |
long |
getSize() |
String |
getZipPathToRoot()
Obtain the path of the zip file to the VFS root
|
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isFile() |
InputStream |
open()
The input stream returned by this method should always be closed after use.
|
String |
toString() |
URL |
toURL() |
public ZipFileImpl(File zip1, ZipEntry entry1, ZipDirectory parent1, ZipCloseableDirectory cache)
zip1 - the zip file the entry is in.entry1 - the entry this IFile represents.parent1 - the parent directory.public ZipFileImpl(ZipFileImpl other, ZipCloseableDirectory cache)
public String getZipPathToRoot()
public IDirectory convert()
public IDirectory convertNested()
convertNested in interface IFilepublic long getLastModified()
getLastModified in interface IFilepublic String getName()
public String getNameInZip()
public IDirectory getParent()
public long getSize()
public boolean isDirectory()
isDirectory in interface IFilepublic boolean isFile()
public InputStream open() throws IOException
IFileopen in interface IFileIOExceptionpublic IDirectory getRoot()
public URL toURL() throws MalformedURLException
toURL in interface IFileMalformedURLExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved