|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.aries.application.utils.filesystem.impl.ZipFileImpl
public class ZipFileImpl
An implementation of IFile that represents a file entry in a zip.
| Field Summary | |
|---|---|
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,
File fs)
This is called to construct the root directory of the zip. |
|
ZipFileImpl(File zip1,
ZipEntry entry1,
ZipDirectory parent1)
This constructor is used to create a file entry within the zip. |
| Method Summary | |
|---|---|
IDirectory |
convert()
|
boolean |
equals(Object obj)
|
long |
getLastModified()
|
String |
getName()
|
IDirectory |
getParent()
|
IDirectory |
getRoot()
|
long |
getSize()
|
int |
hashCode()
|
boolean |
isDirectory()
|
boolean |
isFile()
|
InputStream |
open()
|
String |
toString()
|
URL |
toURL()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected File zip
protected ZipEntry entry
| Constructor Detail |
|---|
public ZipFileImpl(File zip1,
ZipEntry entry1,
ZipDirectory parent1)
zip1 - the zip file the entry is in.entry1 - the entry this IFile represents.parent1 - the parent directory.
protected ZipFileImpl(File zip1,
File fs)
throws MalformedURLException
zip1 - the zip file this represents.fs - the file on the fs.
MalformedURLException| Method Detail |
|---|
public IDirectory convert()
convert in interface IFilepublic long getLastModified()
getLastModified in interface IFilepublic String getName()
getName in interface IFilepublic 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
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 | |||||||||