|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectde.unikassel.android.sdcframework.util.FileCompressor
public final class FileCompressor
A utility class to create archive files using a compression strategy.
| Field Summary | |
|---|---|
private CompressionStrategy |
strategy
The compression strategy to use |
| Constructor Summary | |
|---|---|
FileCompressor(CompressionStrategy strategy)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
compressFiles(List<String> files,
String archive)
Compression method |
String |
getArchiveExtension()
Getter for the compression strategy depending archive type file extension |
CompressionStrategy |
getStrategy()
Getter for the strategy |
void |
setStrategy(CompressionStrategy strategy)
Setter for the strategy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private CompressionStrategy strategy
| Constructor Detail |
|---|
public FileCompressor(CompressionStrategy strategy)
strategy - the compression strategy to use| Method Detail |
|---|
public final void setStrategy(CompressionStrategy strategy)
strategy - the strategy to setpublic final CompressionStrategy getStrategy()
public final boolean compressFiles(List<String> files,
String archive)
files - a list with the files to compressarchive - the archive file name and path
public final String getArchiveExtension()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||