ICompressionStrategy

public interface ICompressionStrategy

com.android.tradefed.util.ICompressionStrategy


An interface representing a compression algorithm that can be selected at runtime.

Summary

Public methods

abstract File compress(File source)

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

abstract LogDataType getLogDataType()

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

Public methods

compress

public abstract 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
If the operation could not be completed

getLogDataType

public abstract LogDataType getLogDataType ()

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

Returns
LogDataType