public class ZipDirectory extends ZipFileImpl implements IDirectory
| Constructor and Description |
|---|
ZipDirectory(File fs,
IDirectory parent)
This constructor creates the root of the zip.
|
ZipDirectory(File zip1,
ZipEntry entry1,
ZipDirectory parent,
ZipCloseableDirectory cache)
Constructs a directory in the zip.
|
ZipDirectory(ZipDirectory other,
ZipCloseableDirectory cache) |
| Modifier and Type | Method and Description |
|---|---|
IDirectory |
convert() |
boolean |
equals(Object other) |
IFile |
getFile(String name)
Gets the requested file under this directory.
|
IDirectory |
getRoot() |
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isRoot() |
boolean |
isZipRoot() |
Iterator<IFile> |
iterator() |
List<IFile> |
listAllFiles() |
List<IFile> |
listFiles() |
InputStream |
open()
The input stream returned by this method should always be closed after use.
|
ICloseableDirectory |
toCloseable()
Open a more effective implementation with user regulated resource management.
|
convertNested, getLastModified, getName, getNameInZip, getParent, getSize, getZipPathToRoot, toString, toURLforEach, spliteratorconvertNested, getLastModified, getName, getParent, getSize, toURLpublic ZipDirectory(File zip1, ZipEntry entry1, ZipDirectory parent, ZipCloseableDirectory cache)
zip1 - the zip file.entry1 - the entry in the zip representing this dir.parent - the parent directory.public ZipDirectory(File fs, IDirectory parent) throws MalformedURLException
file - fs - parent - MalformedURLExceptionpublic ZipDirectory(ZipDirectory other, ZipCloseableDirectory cache)
public IFile getFile(String name)
IDirectorygetFile in interface IDirectoryname - the name of the file.public boolean isRoot()
isRoot in interface IDirectorypublic List<IFile> listFiles()
listFiles in interface IDirectorypublic List<IFile> listAllFiles()
listAllFiles in interface IDirectorypublic IDirectory convert()
convert in interface IFileconvert in class ZipFileImplpublic boolean isDirectory()
isDirectory in interface IFileisDirectory in class ZipFileImplpublic boolean isFile()
isFile in interface IFileisFile in class ZipFileImplpublic InputStream open()
IFileopen in interface IFileopen in class ZipFileImplpublic IDirectory getRoot()
getRoot in interface IFilegetRoot in class ZipFileImplpublic boolean isZipRoot()
public boolean equals(Object other)
equals in class ZipFileImplpublic int hashCode()
hashCode in class ZipFileImplpublic ICloseableDirectory toCloseable()
IDirectorytoCloseable in interface IDirectoryICloseableDirectory or null if a batch aware version of this IDirectory is not supportedCopyright © 2010 - 2020 Adobe. All Rights Reserved