public class MetadataFileSet extends AbstractFileSet
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_SIZE |
fileInfos, pieces| Constructor and Description |
|---|
MetadataFileSet(Torrent torrent,
File metadataFile) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBitfieldBytes()
Gets the have pieces in bitfield format as specified by BEP #3.
|
long |
getPieceSize()
Gets the size of a non-truncated piece.
|
countCompletedPieces, countRemainingBytes, getBlockSize, getFileForBytes, getFiles, getNeededPieces, getPiece, getPieceCount, getTotalFileSize, hasPiece, isDone, setHavingPiecepublic static final int BLOCK_SIZE
public long getPieceSize()
AbstractFileSetgetPieceSize in class AbstractFileSetpublic byte[] getBitfieldBytes()
AbstractFileSetgetBitfieldBytes in class AbstractFileSetCopyright © 2016. All rights reserved.