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

ZipCompressionStrategy ()

Public methods

compress

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

Throws
IOException

getLogDataType

LogDataType getLogDataType ()

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

Returns
LogDataType