Class NestedZipFile
- java.lang.Object
 - 
- org.apache.aries.util.filesystem.impl.NestedZipFile
 
 
- 
- All Implemented Interfaces:
 IFile
- Direct Known Subclasses:
 NestedZipDirectory
public class NestedZipFile extends java.lang.Object implements IFile
 
- 
- 
Constructor Summary
Constructors Constructor Description NestedZipFile(IFile archive)NestedZipFile(IFile archive, java.lang.String pathInZip, NestedZipDirectory parent, NestedCloseableDirectory cache)NestedZipFile(IFile archive, java.util.zip.ZipEntry entry, NestedZipDirectory parent, NestedCloseableDirectory cache)Construct a nested zip fileNestedZipFile(NestedZipFile other, NestedCloseableDirectory cache) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDirectoryconvert()IDirectoryconvertNested()booleanequals(java.lang.Object obj)longgetLastModified()java.lang.StringgetName()java.lang.StringgetNameInZip()IDirectorygetParent()IDirectorygetRoot()longgetSize()inthashCode()booleanisDirectory()booleanisFile()java.io.InputStreamopen()The input stream returned by this method should always be closed after use.java.lang.StringtoString()java.net.URLtoURL() 
 - 
 
- 
- 
Constructor Detail
- 
NestedZipFile
public NestedZipFile(IFile archive, java.util.zip.ZipEntry entry, NestedZipDirectory parent, NestedCloseableDirectory cache)
Construct a nested zip file- Parameters:
 archive-entry-parent-
 
- 
NestedZipFile
public NestedZipFile(IFile archive, java.lang.String pathInZip, NestedZipDirectory parent, NestedCloseableDirectory cache)
 
- 
NestedZipFile
public NestedZipFile(IFile archive)
 
- 
NestedZipFile
public NestedZipFile(NestedZipFile other, NestedCloseableDirectory cache)
 
 - 
 
- 
Method Detail
- 
getNameInZip
public java.lang.String getNameInZip()
 
- 
getName
public java.lang.String getName()
 
- 
isDirectory
public boolean isDirectory()
- Specified by:
 isDirectoryin interfaceIFile- Returns:
 - true iff this IFile is also an IDirectory
 
 
- 
isFile
public boolean isFile()
 
- 
getLastModified
public long getLastModified()
- Specified by:
 getLastModifiedin interfaceIFile- Returns:
 - the last modified date of the file.
 
 
- 
getSize
public long getSize()
 
- 
convert
public IDirectory convert()
 
- 
convertNested
public IDirectory convertNested()
- Specified by:
 convertNestedin interfaceIFile- Returns:
 - if this is a directory or an archive, returns the opened IDirectory
 
 
- 
getParent
public IDirectory getParent()
 
- 
open
public java.io.InputStream open() throws java.io.IOException, java.lang.UnsupportedOperationExceptionDescription copied from interface:IFileThe input stream returned by this method should always be closed after use. 
- 
getRoot
public IDirectory getRoot()
 
- 
toURL
public java.net.URL toURL() throws java.net.MalformedURLException 
- 
equals
public boolean equals(java.lang.Object obj)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -