org.apache.aries.application.utils.filesystem.impl
Class ZipDirectory
java.lang.Object
org.apache.aries.application.utils.filesystem.impl.ZipFileImpl
org.apache.aries.application.utils.filesystem.impl.ZipDirectory
- All Implemented Interfaces:
- Iterable<IFile>, IDirectory, IFile
public class ZipDirectory
- extends ZipFileImpl
- implements IDirectory
A directory in the zip.
| Fields inherited from class org.apache.aries.application.utils.filesystem.impl.ZipFileImpl |
entry, zip |
ZipDirectory
public ZipDirectory(File zip1,
ZipEntry entry1,
ZipDirectory parent)
- Constructs a directory in the zip.
- Parameters:
zip1 - the zip file.entry1 - the entry in the zip representing this dir.parent - the parent directory.
ZipDirectory
public ZipDirectory(File file,
File fs)
throws MalformedURLException
- This constructor creates the root of the zip.
- Parameters:
file - fs -
- Throws:
MalformedURLException
getFile
public IFile getFile(String name)
- Specified by:
getFile in interface IDirectory
isRoot
public boolean isRoot()
- Specified by:
isRoot in interface IDirectory
listFiles
public List<IFile> listFiles()
- Specified by:
listFiles in interface IDirectory
listAllFiles
public List<IFile> listAllFiles()
- Specified by:
listAllFiles in interface IDirectory
iterator
public Iterator<IFile> iterator()
- Specified by:
iterator in interface Iterable<IFile>
convert
public IDirectory convert()
- Specified by:
convert in interface IFile- Overrides:
convert in class ZipFileImpl
getParent
public IDirectory getParent()
- Specified by:
getParent in interface IFile- Overrides:
getParent in class ZipFileImpl
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in interface IFile- Overrides:
isDirectory in class ZipFileImpl
isFile
public boolean isFile()
- Specified by:
isFile in interface IFile- Overrides:
isFile in class ZipFileImpl
open
public InputStream open()
- Specified by:
open in interface IFile- Overrides:
open in class ZipFileImpl
getRoot
public IDirectory getRoot()
- Specified by:
getRoot in interface IFile- Overrides:
getRoot in class ZipFileImpl
equals
public boolean equals(Object other)
- Overrides:
equals in class ZipFileImpl
hashCode
public int hashCode()
- Overrides:
hashCode in class ZipFileImpl
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.