public class NestedZipDirectory extends NestedZipFile implements IDirectory
| Constructor and Description |
|---|
NestedZipDirectory(IFile archive) |
NestedZipDirectory(IFile archive,
String pathInZip,
NestedZipDirectory parent,
NestedCloseableDirectory cache) |
NestedZipDirectory(IFile archive,
ZipEntry entry,
NestedZipDirectory parent,
NestedCloseableDirectory cache) |
NestedZipDirectory(NestedZipDirectory other,
NestedCloseableDirectory cache) |
| Modifier and Type | Method and Description |
|---|---|
IDirectory |
convert() |
IFile |
getFile(String name)
Gets the requested file under this directory.
|
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isRoot() |
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, equals, getLastModified, getName, getNameInZip, getParent, getRoot, getSize, hashCode, toString, toURLforEach, spliteratorconvertNested, getLastModified, getName, getParent, getRoot, getSize, toURLpublic NestedZipDirectory(IFile archive, ZipEntry entry, NestedZipDirectory parent, NestedCloseableDirectory cache)
public NestedZipDirectory(IFile archive, String pathInZip, NestedZipDirectory parent, NestedCloseableDirectory cache)
public NestedZipDirectory(IFile archive)
public NestedZipDirectory(NestedZipDirectory other, NestedCloseableDirectory cache)
public IDirectory convert()
convert in interface IFileconvert in class NestedZipFilepublic List<IFile> listFiles()
listFiles in interface IDirectorypublic List<IFile> listAllFiles()
listAllFiles in interface IDirectorypublic IFile getFile(String name)
IDirectorygetFile in interface IDirectoryname - the name of the file.public boolean isDirectory()
isDirectory in interface IFileisDirectory in class NestedZipFilepublic InputStream open() throws IOException, UnsupportedOperationException
IFileopen in interface IFileopen in class NestedZipFileIOExceptionUnsupportedOperationException - If the IFile is also an IDirectory.public boolean isFile()
isFile in interface IFileisFile in class NestedZipFilepublic boolean isRoot()
isRoot in interface IDirectorypublic 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