Class NestedZipFile
java.lang.Object
org.apache.aries.util.filesystem.impl.NestedZipFile
- All Implemented Interfaces:
IFile
- Direct Known Subclasses:
NestedZipDirectory
-
Constructor Summary
ConstructorsConstructorDescriptionNestedZipFile
(IFile archive) NestedZipFile
(IFile archive, String pathInZip, NestedZipDirectory parent, NestedCloseableDirectory cache) NestedZipFile
(IFile archive, ZipEntry entry, NestedZipDirectory parent, NestedCloseableDirectory cache) Construct a nested zip fileNestedZipFile
(NestedZipFile other, NestedCloseableDirectory cache) -
Method Summary
-
Constructor Details
-
NestedZipFile
public NestedZipFile(IFile archive, ZipEntry entry, NestedZipDirectory parent, NestedCloseableDirectory cache) Construct a nested zip file- Parameters:
archive
-entry
-parent
-
-
NestedZipFile
public NestedZipFile(IFile archive, String pathInZip, NestedZipDirectory parent, NestedCloseableDirectory cache) -
NestedZipFile
-
NestedZipFile
-
-
Method Details
-
getNameInZip
-
getName
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectory
in interfaceIFile
- Returns:
- true iff this IFile is also an IDirectory
-
isFile
public boolean isFile() -
getLastModified
public long getLastModified()- Specified by:
getLastModified
in interfaceIFile
- Returns:
- the last modified date of the file.
-
getSize
public long getSize() -
convert
-
convertNested
- Specified by:
convertNested
in interfaceIFile
- Returns:
- if this is a directory or an archive, returns the opened IDirectory
-
getParent
-
open
Description copied from interface:IFile
The input stream returned by this method should always be closed after use.- Specified by:
open
in interfaceIFile
- Returns:
- An InputStream to read the file from.
- Throws:
IOException
UnsupportedOperationException
- If the IFile is also an IDirectory.
-
getRoot
-
toURL
- Specified by:
toURL
in interfaceIFile
- Returns:
- a URL that can be used to get at this file at a later date.
- Throws:
MalformedURLException
-
equals
-
hashCode
public int hashCode() -
toString
-