public class ZipExtractor extends Object
Constructor and Description |
---|
ZipExtractor(File zipFile)
Creates an instance of an ZipExtractor.
|
ZipExtractor(InputStream in,
String zipFileName)
Creates an instance of an ZipExtractor.
|
public ZipExtractor(File zipFile) throws FileNotFoundException, IllegalArgumentException
zipFile
- File the zip file to extractFileNotFoundException
- if the specified file does not existIllegalArgumentException
- if the zip file is not a zip filepublic ZipExtractor(InputStream in, String zipFileName) throws FileNotFoundException, IllegalArgumentException
in
- InputStream for zip contentzipFileName
- name of the input zip fileFileNotFoundException
- if the specified file does not existIllegalArgumentException
- if the zip file is not a zip filepublic void extract(File destination) throws ApplicationException
destination
- File where the zip file will be extractedApplicationException
- if something goes wrongCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.