| Package | Description |
|---|---|
| org.johnnei.javatorrent.torrent.files |
| Modifier and Type | Method and Description |
|---|---|
BlockStatus |
Piece.getBlockStatus(int blockIndex)
Gets the block status for the block at the given index
|
BlockStatus |
Block.getStatus()
Gets the current status of this block.
|
static BlockStatus |
BlockStatus.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockStatus[] |
BlockStatus.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Piece.countBlocksWithStatus(BlockStatus status) |
boolean |
Piece.hasBlockWithStatus(BlockStatus status)
Tests if any of the blocks have the given status.
|
void |
Piece.setBlockStatus(int blockIndex,
BlockStatus blockStatus)
Updates the block status of the block at the given index.
|
void |
Block.setStatus(BlockStatus status)
Updates the status of the block.
|
Copyright © 2016. All rights reserved.