org.jvnet.hudson.plugins.backup.utils.compress
Class AbstractArchiver
java.lang.Object
org.jvnet.hudson.plugins.backup.utils.compress.AbstractArchiver
- All Implemented Interfaces:
- Archiver
- Direct Known Subclasses:
- TarBz2Archiver, TarGzipArchiver, ZipArchiver
public abstract class AbstractArchiver
- extends java.lang.Object
- implements Archiver
|
Method Summary |
void |
addFile(java.lang.String destinationName,
java.io.File source)
Add a file into the archive |
void |
close()
close all the archiver stuff |
abstract org.codehaus.plexus.archiver.Archiver |
getArchiver()
|
abstract void |
init(java.io.File destination)
Init the archiver. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractArchiver
public AbstractArchiver()
addFile
public void addFile(java.lang.String destinationName,
java.io.File source)
throws ArchiverException
- Description copied from interface:
Archiver
- Add a file into the archive
- Specified by:
addFile in interface Archiver
- Parameters:
destinationName - the name in the archivesource - the file containing the data to add in the archive
- Throws:
ArchiverException
close
public void close()
throws ArchiverException
- Description copied from interface:
Archiver
- close all the archiver stuff
- Specified by:
close in interface Archiver
- Throws:
ArchiverException
init
public abstract void init(java.io.File destination)
throws ArchiverException
- Description copied from interface:
Archiver
- Init the archiver.
- Specified by:
init in interface Archiver
- Parameters:
destination - the final file
- Throws:
ArchiverException
getArchiver
public abstract org.codehaus.plexus.archiver.Archiver getArchiver()
Copyright © 2009. All Rights Reserved.