|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.aries.util.filesystem.impl.ZipFileImpl
public class ZipFileImpl
An implementation of IFile that represents a file entry in a zip.
| Field Summary | |
|---|---|
protected ZipCloseableDirectory |
cache
The closeable directory that caches the open ZipFile |
protected ZipEntry |
entry
The entry in the zip this IFile represents |
protected File |
zip
The zip file this is contained in |
| Constructor Summary | |
|---|---|
protected |
ZipFileImpl(File zip1,
IDirectory parent)
This is called to construct the root directory of the zip. |
|
ZipFileImpl(File zip1,
ZipEntry entry1,
ZipDirectory parent1,
ZipCloseableDirectory cache)
This constructor is used to create a file entry within the zip. |
|
ZipFileImpl(ZipFileImpl other,
ZipCloseableDirectory cache)
|
| Method Summary | |
|---|---|
IDirectory |
convert()
|
IDirectory |
convertNested()
|
boolean |
equals(Object obj)
|
long |
getLastModified()
|
String |
getName()
|
String |
getNameInZip()
|
IDirectory |
getParent()
|
IDirectory |
getRoot()
|
long |
getSize()
|
String |
getZipPathToRoot()
Obtain the path of the zip file to the VFS root |
int |
hashCode()
|
boolean |
isDirectory()
|
boolean |
isFile()
|
InputStream |
open()
The input stream returned by this method should always be closed after use. |
String |
toString()
|
URL |
toURL()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final File zip
protected final ZipEntry entry
protected final ZipCloseableDirectory cache
| Constructor Detail |
|---|
public ZipFileImpl(File zip1,
ZipEntry entry1,
ZipDirectory parent1,
ZipCloseableDirectory cache)
zip1 - the zip file the entry is in.entry1 - the entry this IFile represents.parent1 - the parent directory.
protected ZipFileImpl(File zip1,
IDirectory parent)
throws MalformedURLException
zip1 - the zip file this represents.fs - the file on the fs.rootName - the name of this zipfile relative to the IFile filesystem root
MalformedURLException
public ZipFileImpl(ZipFileImpl other,
ZipCloseableDirectory cache)
| Method Detail |
|---|
public String getZipPathToRoot()
public IDirectory convert()
convert in interface IFilepublic IDirectory convertNested()
convertNested in interface IFilepublic long getLastModified()
getLastModified in interface IFilepublic String getName()
getName in interface IFilepublic String getNameInZip()
public IDirectory getParent()
getParent in interface IFilepublic long getSize()
getSize in interface IFilepublic boolean isDirectory()
isDirectory in interface IFilepublic boolean isFile()
isFile in interface IFile
public InputStream open()
throws IOException
IFile
open in interface IFileIOExceptionpublic IDirectory getRoot()
getRoot in interface IFile
public URL toURL()
throws MalformedURLException
toURL in interface IFileMalformedURLExceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||