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