public static final class TorrentBuilder.Result
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Entry |
entry() |
java.util.ArrayList<Sha1Hash> |
merkleTree()
This function returns the merkle hash tree, if the torrent was created
as a merkle torrent.
|
int |
numPieces() |
int |
pieceLength() |
int |
pieceSize(int index) |
public Entry entry()
public int numPieces()
public int pieceLength()
public int pieceSize(int index)
index - public java.util.ArrayList<Sha1Hash> merkleTree()
TorrentBuilder.generate() and won't
be valid until that function has been called.
When creating a merkle tree torrent, the actual tree itself has to
be saved off separately and fed into libtorrent the first time you start
seeding it, through the TorrentInfo.merkleTree(List) function.
From that point onwards, the tree will be saved in the resume data.