ICompressionStrategy

public interface ICompressionStrategy

com.android.tradefed.util.ICompressionStrategy
Known Indirect Subclasses


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

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

getLogDataType

LogDataType getLogDataType ()

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

Returns
LogDataType