Class Overview
This class will help when working with zip files
Summary
| Nested Classes |
|
interface |
AttachmentZipKit.AttachmentZipEntries |
|
|
interface |
AttachmentZipKit.AttachmentZipEntry |
These are the data returned about entries in a zip file
|
|
enum |
AttachmentZipKit.FileCriteria |
|
|
class |
AttachmentZipKit.ZipEntryInputStream |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
AttachmentZipKit
()
Public Methods
This will extract an OutputStream of the contents of the file at entryIndex within the zip file.
If no file can be found be at that entryIndex or the entry is a directory then null will be returned.
Parameters
| zipFile
| the zip file in play |
| entryIndex
| the entryIndex of the entry to return |
public
boolean
isZip
(File file)
This will return true if the file is in fact a valid zip file.
Returns
- true if its actually a readable zip file.
Parameters
| zipFile
| the ZIP file in play |
| maxEntries
| the maximum number of entries to put in th list. If this is -negative then not maximum is
used. |
| criteria
| the criteria of which entries to return |
Throws
| IOException
| if the file cant be read or is not a zip.
file.
|