Package com.biglybt.core.torrent
Interface TOTorrentFile
- All Known Implementing Classes:
TOTorrentFileImpl
public interface TOTorrentFile
-
Method Summary
Modifier and TypeMethodDescriptionint
V2 torrents only - also null for zero length filesint
getIndex()
int
long
int
byte[][]
Build a relative path based on path components, usingFile.separator
byte[]
boolean
is BEP_47 pad file
-
Method Details
-
getTorrent
TOTorrent getTorrent() -
getIndex
int getIndex() -
getLength
long getLength() -
getPathComponents
byte[][] getPathComponents() -
getRelativePath
String getRelativePath()Build a relative path based on path components, usingFile.separator
-
getFirstPieceNumber
int getFirstPieceNumber() -
getLastPieceNumber
int getLastPieceNumber() -
getNumberOfPieces
int getNumberOfPieces() -
isPadFile
boolean isPadFile()is BEP_47 pad file- Returns:
-
getHashTree
TOTorrentFileHashTree getHashTree()V2 torrents only - also null for zero length files- Returns:
-
getRootHash
byte[] getRootHash() -
getAdditionalProperties
Map getAdditionalProperties()
-