org.codehaus.plexus.archiver.zip
Class AbstractZipUnArchiver
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.archiver.AbstractUnArchiver
org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver
- All Implemented Interfaces:
- FilterEnabled, FinalizerEnabled, UnArchiver, org.codehaus.plexus.logging.LogEnabled
- Direct Known Subclasses:
- TarUnArchiver, ZipUnArchiver
public abstract class AbstractZipUnArchiver
- extends AbstractUnArchiver
- Version:
- $Id$
- Author:
- Emmanuel Venisse
Fields inherited from interface org.codehaus.plexus.archiver.UnArchiver |
ROLE |
Methods inherited from class org.codehaus.plexus.archiver.AbstractUnArchiver |
addArchiveFinalizer, extract, extract, getDestDirectory, getDestFile, getFileSelectors, getSourceFile, include, isIgnorePermissions, isOverwrite, isSelected, isUseJvmChmod, setArchiveFilters, setArchiveFinalizers, setDestDirectory, setDestFile, setFileSelectors, setIgnorePermissions, setOverwrite, setSourceFile, setUseJvmChmod, validate, validate |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractZipUnArchiver
public AbstractZipUnArchiver()
AbstractZipUnArchiver
public AbstractZipUnArchiver(File sourceFile)
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.
execute
protected void execute()
throws ArchiverException
- Specified by:
execute
in class AbstractUnArchiver
- Throws:
ArchiverException
extractFile
protected void extractFile(File srcF,
File dir,
InputStream compressedInputStream,
String entryName,
Date entryDate,
boolean isDirectory,
Integer mode)
throws IOException,
ArchiverException
- Throws:
IOException
ArchiverException
execute
protected void execute(String path,
File outputDirectory)
throws ArchiverException
- Specified by:
execute
in class AbstractUnArchiver
- Throws:
ArchiverException
Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.