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, toURL
forEach, spliterator
convertNested, getLastModified, getName, getParent, getRoot, getSize, toURL
public 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 IFile
convert
in class NestedZipFile
public List<IFile> listFiles()
listFiles
in interface IDirectory
public List<IFile> listAllFiles()
listAllFiles
in interface IDirectory
public IFile getFile(String name)
IDirectory
getFile
in interface IDirectory
name
- the name of the file.public boolean isDirectory()
isDirectory
in interface IFile
isDirectory
in class NestedZipFile
public InputStream open() throws IOException, UnsupportedOperationException
IFile
open
in interface IFile
open
in class NestedZipFile
IOException
UnsupportedOperationException
- If the IFile is also an IDirectory.public boolean isFile()
isFile
in interface IFile
isFile
in class NestedZipFile
public boolean isRoot()
isRoot
in interface IDirectory
public ICloseableDirectory toCloseable()
IDirectory
toCloseable
in interface IDirectory
ICloseableDirectory
or null if a batch aware version of this IDirectory
is not supportedCopyright © 2010 - 2020 Adobe. All Rights Reserved