org.codehaus.plexus.archiver.zip
Class AbstractZipUnArchiver

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.plexus.archiver.AbstractUnArchiver
          extended by 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: AbstractZipUnArchiver.java 7140 2008-01-06 11:50:12Z jochen $
Author:
Emmanuel Venisse

Field Summary
 
Fields inherited from interface org.codehaus.plexus.archiver.UnArchiver
ROLE
 
Constructor Summary
AbstractZipUnArchiver()
           
AbstractZipUnArchiver(java.io.File sourceFile)
           
 
Method Summary
protected  void execute()
           
protected  void execute(java.lang.String path, java.io.File outputDirectory)
           
protected  void extractFile(java.io.File srcF, java.io.File dir, java.io.InputStream compressedInputStream, java.lang.String entryName, java.util.Date entryDate, boolean isDirectory, java.lang.Integer mode)
           
 void setEncoding(java.lang.String encoding)
          Sets the encoding to assume for file names and comments.
 
Methods inherited from class org.codehaus.plexus.archiver.AbstractUnArchiver
addArchiveFinalizer, extract, extract, getDestDirectory, getDestFile, getFileSelectors, getSourceFile, include, isOverwrite, isSelected, setArchiveFilters, setArchiveFinalizers, setDestDirectory, setDestFile, setFileSelectors, setOverwrite, setSourceFile, 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
 

Constructor Detail

AbstractZipUnArchiver

public AbstractZipUnArchiver()

AbstractZipUnArchiver

public AbstractZipUnArchiver(java.io.File sourceFile)
Method Detail

setEncoding

public void setEncoding(java.lang.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(java.io.File srcF,
                           java.io.File dir,
                           java.io.InputStream compressedInputStream,
                           java.lang.String entryName,
                           java.util.Date entryDate,
                           boolean isDirectory,
                           java.lang.Integer mode)
                    throws java.io.IOException,
                           ArchiverException
Throws:
java.io.IOException
ArchiverException

execute

protected void execute(java.lang.String path,
                       java.io.File outputDirectory)
                throws ArchiverException
Specified by:
execute in class AbstractUnArchiver
Throws:
ArchiverException


Copyright © 2001-2010 Codehaus. All Rights Reserved.