|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.compress.PackableObject
org.apache.commons.compress.AbstractArchive
org.apache.commons.compress.archivers.zip.ZipArchive
public class ZipArchive
Archive-Implementation for Zip.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.compress.PackableObject |
|---|
CHOOSE_EXTENSION, CHOOSE_NAME |
| Constructor Summary | |
|---|---|
ZipArchive()
This Archive should be instantiated in the Archive-Interface. |
|
| Method Summary | |
|---|---|
protected void |
doSave(OutputStream output)
Specific implementation of the save opteration. |
protected void |
doUnpack(File unpackDir)
Specific implementation of the unpack opteration. |
String |
getDefaultFileExtension()
Returns the default FileExtension for this archive, for example "zip", "tar"... |
byte[] |
getHeader()
Header byte array for this archive. |
String |
getName()
Returns the ArchiveName for this archive. |
| Methods inherited from class org.apache.commons.compress.AbstractArchive |
|---|
add, add, close, getArchive, getEntryIterator, save, save, setArchive, unpack |
| Methods inherited from class org.apache.commons.compress.PackableObject |
|---|
identifyByHeader, isPackableWith |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZipArchive()
| Method Detail |
|---|
protected void doUnpack(File unpackDir)
throws UnpackException
AbstractArchive
doUnpack in class AbstractArchiveunpackDir - dir, to unpack to
UnpackException
protected void doSave(OutputStream output)
throws ArchiveException
AbstractArchive
doSave in class AbstractArchiveoutput - - stream to archive to
ArchiveExceptionpublic String getName()
PackableObject
getName in class PackableObjectpublic String getDefaultFileExtension()
PackableObject
getDefaultFileExtension in class PackableObjectpublic byte[] getHeader()
PackableObject
getHeader in class PackableObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||