public class AesZipFileDecrypter extends java.lang.Object implements ZipConstants
http://www.winzip.com/aes_info.htm
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
charset
charset to use for filename(s) and password - defaults to iso-8859-1
|
CENSIG, ENDSIG, EXTSIG, LOCSIG
Constructor and Description |
---|
AesZipFileDecrypter(java.io.File zipFile) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
extractEntry(ExtZipEntry zipEntry,
java.io.File outFile,
java.lang.String password)
extract zipEntry - uses in-memory, so your file should not be too big
|
void |
extractEntry(ExtZipEntry zipEntry,
java.io.OutputStream outStream,
java.lang.String password)
extract zipEntry - uses in-memory, so your file (stream contents) should not be too big
|
void |
extractEntryWithTmpFile(ExtZipEntry zipEntry,
java.io.File outFile,
java.lang.String password) |
java.lang.String |
getComment()
return the zip file's comment (if defined)
|
ExtZipEntry |
getEntry(java.lang.String name) |
java.util.List<ExtZipEntry> |
getEntryList()
return list of entries from zip file - the list contains files as well as non-decryptable (!)
|
short |
getNumberOfEntries()
number of entries in file (files AND directories)
|
static void |
main(java.lang.String[] args)
testcode + usage example
|
public static java.lang.String charset
public AesZipFileDecrypter(java.io.File zipFile) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public java.util.List<ExtZipEntry> getEntryList() throws java.io.IOException, java.util.zip.ZipException
java.io.IOException
java.util.zip.ZipException
public ExtZipEntry getEntry(java.lang.String name) throws java.io.IOException, java.util.zip.ZipException, java.util.zip.DataFormatException
java.io.IOException
java.util.zip.ZipException
java.util.zip.DataFormatException
public void extractEntryWithTmpFile(ExtZipEntry zipEntry, java.io.File outFile, java.lang.String password) throws java.io.IOException, java.util.zip.ZipException, java.util.zip.DataFormatException
java.io.IOException
java.util.zip.ZipException
java.util.zip.DataFormatException
public short getNumberOfEntries() throws java.io.IOException
java.io.IOException
public java.lang.String getComment()
public void extractEntry(ExtZipEntry zipEntry, java.io.OutputStream outStream, java.lang.String password) throws java.io.IOException, java.util.zip.ZipException, java.util.zip.DataFormatException
java.io.IOException
java.util.zip.ZipException
java.util.zip.DataFormatException
public void extractEntry(ExtZipEntry zipEntry, java.io.File outFile, java.lang.String password) throws java.io.IOException, java.util.zip.ZipException, java.util.zip.DataFormatException
java.io.IOException
java.util.zip.ZipException
java.util.zip.DataFormatException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception