org.codehaus.plexus.archiver
Class AbstractUnArchiver

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.plexus.archiver.AbstractUnArchiver
All Implemented Interfaces:
UnArchiver, org.codehaus.plexus.logging.LogEnabled
Direct Known Subclasses:
AbstractZipUnArchiver, BZip2UnArchiver, GZipUnArchiver

public abstract class AbstractUnArchiver
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements UnArchiver

Version:
$Revision: 2439 $ $Date: 2005-09-04 09:02:18 -0700 (Sun, 04 Sep 2005) $
Author:
Emmanuel Venisse

Field Summary
 
Fields inherited from interface org.codehaus.plexus.archiver.UnArchiver
ROLE
 
Constructor Summary
AbstractUnArchiver()
           
 
Method Summary
protected abstract  void execute()
           
 void extract()
           
 java.io.File getDestDirectory()
           
 java.io.File getDestFile()
           
 java.io.File getSourceFile()
           
 boolean isOverwrite()
           
 void setDestDirectory(java.io.File destDirectory)
           
 void setDestFile(java.io.File destFile)
           
 void setOverwrite(boolean b)
          Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?
 void setSourceFile(java.io.File sourceFile)
           
protected  void 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

AbstractUnArchiver

public AbstractUnArchiver()
Method Detail

getDestDirectory

public java.io.File getDestDirectory()
Specified by:
getDestDirectory in interface UnArchiver

setDestDirectory

public void setDestDirectory(java.io.File destDirectory)
Specified by:
setDestDirectory in interface UnArchiver

getDestFile

public java.io.File getDestFile()
Specified by:
getDestFile in interface UnArchiver

setDestFile

public void setDestFile(java.io.File destFile)
Specified by:
setDestFile in interface UnArchiver

getSourceFile

public java.io.File getSourceFile()
Specified by:
getSourceFile in interface UnArchiver

setSourceFile

public void setSourceFile(java.io.File sourceFile)
Specified by:
setSourceFile in interface UnArchiver

isOverwrite

public boolean isOverwrite()

setOverwrite

public void setOverwrite(boolean b)
Description copied from interface: UnArchiver
Should we overwrite files in dest, even if they are newer than the corresponding entries in the archive?

Specified by:
setOverwrite in interface UnArchiver

extract

public void extract()
             throws ArchiverException,
                    java.io.IOException
Specified by:
extract in interface UnArchiver
Throws:
ArchiverException
java.io.IOException

validate

protected void validate()
                 throws ArchiverException
Throws:
ArchiverException

execute

protected abstract void execute()
                         throws ArchiverException,
                                java.io.IOException
Throws:
ArchiverException
java.io.IOException


Copyright 2001-2001-2006 Codehaus. All Rights Reserved.