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

toString

public String toString ()

返回
String