org.codehaus.plexus.archiver.zip

Class AbstractZipUnArchiver

Implemented Interfaces:
UnArchiver
Known Direct Subclasses:
TarUnArchiver, ZipUnArchiver

public abstract class AbstractZipUnArchiver
extends AbstractUnArchiver

Version:
$Id: AbstractZipUnArchiver.java 2436 2005-09-01 17:20:41Z trygvis $
Author:
Emmanuel Venisse

Field Summary

private static String
NATIVE_ENCODING
private String
encoding

Fields inherited from class org.codehaus.plexus.archiver.AbstractUnArchiver

destDirectory, destFile, overwrite, sourceFile

Fields inherited from interface org.codehaus.plexus.archiver.UnArchiver

ROLE

Method Summary

protected void
execute()
protected void
extractFile(File srcF, File dir, InputStream compressedInputStream, String entryName, Date entryDate, boolean isDirectory)
void
setEncoding(String encoding)
Sets the encoding to assume for file names and comments.

Methods inherited from class org.codehaus.plexus.archiver.AbstractUnArchiver

execute, extract, getDestDirectory, getDestFile, getSourceFile, isOverwrite, setDestDirectory, setDestFile, setOverwrite, setSourceFile, validate

Field Details

NATIVE_ENCODING

private static final String NATIVE_ENCODING

encoding

private String encoding

Method Details

execute

protected void execute()
            throws ArchiverException,
                   IOException
Overrides:
execute in interface AbstractUnArchiver

extractFile

protected void extractFile(File srcF,
                           File dir,
                           InputStream compressedInputStream,
                           String entryName,
                           Date entryDate,
                           boolean isDirectory)
            throws IOException

setEncoding

public void setEncoding(String encoding)
Sets the encoding to assume for file names and comments.

Set to native-encoding if you want your platform's native encoding, defaults to UTF8.