PendingBlock
public
class
PendingBlock
extends Object
| java.lang.Object | |
| ↳ | com.android.incfs.install.PendingBlock |
A block of data belonging to the APK or signature file that is needed by the device.
Summary
Public constructors | |
|---|---|
PendingBlock(PendingBlock block)
|
|
Public methods | |
|---|---|
int
|
getBlockIndex()
The index of the data block in the file. |
short
|
getBlockSize()
The size in bytes of the block data. |
PendingBlock.Compression
|
getCompression()
|
int
|
getFileBlockCount()
The number of blocks in the file in which the block resides. |
Path
|
getPath()
The path to the file in which the block resides. |
PendingBlock.Type
|
getType()
|
void
|
readBlockData(ByteBuffer buffer)
Reads the block data into the buffer at the current position. |
String
|
toString()
|
Public constructors
Public methods
getBlockIndex
public int getBlockIndex ()
The index of the data block in the file.
| Returns | |
|---|---|
int |
|
getBlockSize
public short getBlockSize ()
The size in bytes of the block data.
| Returns | |
|---|---|
short |
|
getCompression
public PendingBlock.Compression getCompression ()
| Returns | |
|---|---|
PendingBlock.Compression |
|
See also:
getFileBlockCount
public int getFileBlockCount ()
The number of blocks in the file in which the block resides.
| Returns | |
|---|---|
int |
|
getPath
public Path getPath ()
The path to the file in which the block resides.
| Returns | |
|---|---|
Path |
|
readBlockData
public void readBlockData (ByteBuffer buffer)
Reads the block data into the buffer at the current position.
| Parameters | |
|---|---|
buffer |
ByteBuffer |
toString
public String toString ()
| Returns | |
|---|---|
String |
|