org.apache.commons.compress.archivers.zip
Class ZipArchive
java.lang.Object
org.apache.commons.compress.PackableObject
org.apache.commons.compress.AbstractArchive
org.apache.commons.compress.archivers.zip.ZipArchive
- All Implemented Interfaces:
- org.apache.commons.compress.Archive
public class ZipArchive
- extends org.apache.commons.compress.AbstractArchive
Archive-Implementation for Zip.
Field Summary |
private static java.lang.String |
ARCHIVER_NAME
ARCHIVER_NAME Field for this archiver. |
private static int |
BUFFER
|
private static java.lang.String |
DEFAULT_FILE_EXTENSION
DEFAULT_FILE_EXTENSION Field for this archiver. |
private static byte[] |
HEADER
HEADER Field for this archiver. |
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. |
Methods inherited from class org.apache.commons.compress.AbstractArchive |
add, add, close, getArchive, getEntryIterator, newInstance, 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 |
BUFFER
private static final int BUFFER
- See Also:
- Constant Field Values
HEADER
private static final byte[] HEADER
- HEADER Field for this archiver.
DEFAULT_FILE_EXTENSION
private static java.lang.String DEFAULT_FILE_EXTENSION
- DEFAULT_FILE_EXTENSION Field for this archiver.
ARCHIVER_NAME
private static final java.lang.String ARCHIVER_NAME
- ARCHIVER_NAME Field for this archiver.
- See Also:
- Constant Field Values
ZipArchive
public ZipArchive()
- This Archive should be instantiated in the Archive-Interface.
doUnpack
protected void doUnpack(java.io.File unpackDir)
throws org.apache.commons.compress.UnpackException
- Specified by:
doUnpack
in class org.apache.commons.compress.AbstractArchive
- Throws:
org.apache.commons.compress.UnpackException
doSave
protected void doSave(java.io.FileOutputStream output)
throws org.apache.commons.compress.ArchiveException
- Specified by:
doSave
in class org.apache.commons.compress.AbstractArchive
- Throws:
org.apache.commons.compress.ArchiveException
getName
public java.lang.String getName()
- Specified by:
getName
in class org.apache.commons.compress.PackableObject
getDefaultFileExtension
public java.lang.String getDefaultFileExtension()
- Specified by:
getDefaultFileExtension
in class org.apache.commons.compress.PackableObject
getHeader
public byte[] getHeader()
- Specified by:
getHeader
in class org.apache.commons.compress.PackableObject