public abstract class AbstractZipUnArchiver extends AbstractUnArchiver
ROLE
Constructor and Description |
---|
AbstractZipUnArchiver() |
AbstractZipUnArchiver(File sourceFile) |
Modifier and Type | Method and Description |
---|---|
protected void |
execute() |
protected void |
execute(String path,
File outputDirectory) |
void |
setEncoding(String encoding)
Sets the encoding to assume for file names and comments.
|
void |
setMaxOutputSize(long maxOutputSize)
Set maximum allowed size of the produced output.
|
addArchiveFinalizer, extract, extract, extractFile, getDestDirectory, getDestFile, getFileMappers, getFileSelectors, getSourceFile, isIgnorePermissions, isOverwrite, isSelected, isUseJvmChmod, setArchiveFinalizers, setDestDirectory, setDestFile, setFileMappers, setFileSelectors, setIgnorePermissions, setOverwrite, setSourceFile, setUseJvmChmod, validate, validate
public AbstractZipUnArchiver()
public AbstractZipUnArchiver(File sourceFile)
public void setEncoding(String encoding)
Set to native-encoding
if you want your platform's native encoding, defaults to UTF8.
public void setMaxOutputSize(long maxOutputSize)
maxOutputSize
- max size of the produced output, in bytes. Must be greater than 0IllegalArgumentException
- if specified output size is less or equal to 0protected void execute() throws ArchiverException
execute
in class AbstractUnArchiver
ArchiverException
protected void execute(String path, File outputDirectory) throws ArchiverException
execute
in class AbstractUnArchiver
ArchiverException
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.