ZipCompressionStrategy

public class ZipCompressionStrategy
extends Object implements ICompressionStrategy

java.lang.Object
   ↳ com.android.tradefed.util.ZipCompressionStrategy


An ICompressionStrategy for creating zip archives.

Summary

Public constructors

ZipCompressionStrategy()

Public methods

File compress(File source)

Compresses the source file (or folder) and returns the resulting archive.

LogDataType getLogDataType()

Returns the LogDataType of the archive format used by this strategy.

Public constructors

ZipCompressionStrategy

public ZipCompressionStrategy ()

Public methods

compress

public File compress (File source)

Compresses the source file (or folder) and returns the resulting archive.

Parameters
source File: The file or directory to compress

Returns
File The compressed archive

getLogDataType

public LogDataType getLogDataType ()

Returns the LogDataType of the archive format used by this strategy.

Returns
LogDataType