PendingBlock

public class PendingBlock
extends Object

java.lang.Object
com.android.incfs.install.PendingBlock


设备所需的 APK 或签名文件的数据块。

摘要

公共构造函数

PendingBlock(PendingBlock block)

公共方法

int getBlockIndex()

文件中数据块的索引。

short getBlockSize()

块数据的大小(以字节为单位)。

PendingBlock.Compression getCompression()
int getFileBlockCount()

块所在文件中的块数。

Path getPath()

块所在文件的路径。

PendingBlock.Type getType()
void readBlockData(ByteBuffer buffer)

将块数据读取到当前位置的缓冲区中。

String toString()

公共构造函数

PendingBlock

public PendingBlock (PendingBlock block)

参数
block PendingBlock

公共方法

getBlockIndex

public int getBlockIndex ()

文件中数据块的索引。

返回
int

getBlockSize

public short getBlockSize ()

块数据的大小(以字节为单位)。

返回
short

getCompression

public PendingBlock.Compression getCompression ()

返回
PendingBlock.Compression

getFileBlockCount

public int getFileBlockCount ()

块所在文件中的块数。

返回
int

getPath

public Path getPath ()

块所在文件的路径。

返回
Path

getType

public PendingBlock.Type getType ()

返回
PendingBlock.Type

另见

readBlockData

public void readBlockData (ByteBuffer buffer)

将块数据读取到当前位置的缓冲区中。

参数
buffer ByteBuffer

抛出
IOException

toString

public String toString ()

返回
String