ICompressionStrategy
public
interface
ICompressionStrategy
| com.android.tradefed.util.ICompressionStrategy |
表示可在运行时选择的压缩算法的接口。
摘要
公共方法 | |
|---|---|
abstract
File
|
compress(File source)
压缩 |
abstract
LogDataType
|
getLogDataType()
返回此策略所使用的归档格式的 |
公共方法
压缩
public abstract File compress (File source)
压缩 source 文件(或文件夹),并返回生成的归档文件。
| 参数 | |
|---|---|
source |
File:要压缩的文件或目录 |
| 返回 | |
|---|---|
File |
压缩包 |
| 抛出 | |
|---|---|
|
如果操作无法完成 |
getLogDataType
public abstract LogDataType getLogDataType ()
返回此策略所使用的归档格式的 LogDataType。
| 返回 | |
|---|---|
LogDataType |
|