Uses of Class
org.johnnei.javatorrent.torrent.files.BlockStatus
-
Packages that use BlockStatus Package Description org.johnnei.javatorrent.torrent.files -
-
Uses of BlockStatus in org.johnnei.javatorrent.torrent.files
Methods in org.johnnei.javatorrent.torrent.files that return BlockStatus Modifier and Type Method Description BlockStatusPiece. getBlockStatus(int blockIndex)Gets the block status for the block at the given indexBlockStatusBlock. getStatus()Gets the current status of this block.static BlockStatusBlockStatus. 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.Methods in org.johnnei.javatorrent.torrent.files with parameters of type BlockStatus Modifier and Type Method Description static BlockBlock. copyWithStatus(Block original, BlockStatus newStatus)intPiece. countBlocksWithStatus(BlockStatus status)booleanPiece. hasBlockWithStatus(BlockStatus status)Tests if any of the blocks have the given status.voidPiece. setBlockStatus(int blockIndex, BlockStatus blockStatus)Updates the block status of the block at the given index.voidBlock. setStatus(BlockStatus status)Updates the status of the block.
-