org.jvnet.hudson.plugins.backup.utils.compress
Interface Archiver

All Known Implementing Classes:
AbstractArchiver, TarBz2Archiver, TarGzipArchiver, ZipArchiver

public interface Archiver

The contract for the different archivers.

Author:
vsellier

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
 void init(java.io.File destination)
          Init the archiver.
 

Method Detail

init

void init(java.io.File destination)
          throws ArchiverException
Init the archiver.

Parameters:
destination - the final file
Throws:
ArchiverException

close

void close()
           throws ArchiverException
close all the archiver stuff

Throws:
ArchiverException

addFile

void addFile(java.lang.String destinationName,
             java.io.File source)
             throws ArchiverException
Add a file into the archive

Parameters:
destinationName - the name in the archive
source - the file containing the data to add in the archive
Throws:
ArchiverException


Copyright © 2009. All Rights Reserved.