稀疏图像工具

public class SparseImageUtil
extends Object

java.lang.Object
com.android.tradefed.util.SparseImageUtil


用于解稀疏稀疏图像的实用程序。

这段代码采用自:frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/SparseInputStream.java

概括

嵌套类

class SparseImageUtil.SparseInputStream

SparseInputStream 从上游读取并检测数据格式。

公共构造函数

SparseImageUtil ()

公共方法

static boolean isSparse (File imgFile)

测试文件是否是稀疏图像。

static void unsparse (File imgFile, File destFile)

解解析稀疏图像文件。

公共构造函数

稀疏图像工具

public SparseImageUtil ()

公共方法

稀疏

public static boolean isSparse (File imgFile)

测试文件是否是稀疏图像。

参数
imgFile File :要测试的ERROR(/File)

退货
boolean如果 imgFile 是稀疏图像,则为 true。

不稀疏

public static void unsparse (File imgFile, 
                File destFile)

解解析稀疏图像文件。

参数
imgFile FileERROR(/File) ,是稀疏图像。

destFile File :将未稀疏图像写入的ERROR(/File)

投掷
如果 imgFile 不是稀疏图像。