de.unikassel.android.sdcframework.util.facade
Interface CompressionStrategy

Package class diagram package CompressionStrategy
All Known Implementing Classes:
JarCompressionStrategy, ZipCompressionStrategy

public interface CompressionStrategy

Interface for compression strategiy types.


Method Summary
 boolean compress(List<String> files, BufferedOutputStream out)
          The compression method
 String getArchiveExtension()
          Getter for an archive file extension of this strategy
 

Method Detail

compress

boolean compress(List<String> files,
                 BufferedOutputStream out)
                 throws IOException
The compression method

Parameters:
files - a list with the files to compress
out - the output stream to compress files into
Returns:
true if successful, false otherwise
Throws:
IOException - if closing the output stream fails

getArchiveExtension

String getArchiveExtension()
Getter for an archive file extension of this strategy

Returns:
the archive file extension of this strategy