Interface TOTorrentFile
- All Known Implementing Classes:
TOTorrentFileImpl
public interface TOTorrentFile
-
Method Summary
Modifier and TypeMethodDescriptionintV2 torrents only - also null for zero length filesintgetIndex()intlongintlongbyte[][]Build a relative path based on path components, usingFile.separatorgetRelativePath(LocaleUtilDecoder decoder) byte[]booleanis BEP_47 pad file
-
Method Details
-
getTorrent
TOTorrent getTorrent() -
getIndex
int getIndex() -
getLength
long getLength() -
getOffsetInTorrent
long getOffsetInTorrent() -
getPathComponents
byte[][] getPathComponents() -
getRelativePath
String getRelativePath()Build a relative path based on path components, usingFile.separator -
getRelativePath
-
getFirstPieceNumber
int getFirstPieceNumber() -
getLastPieceNumber
int getLastPieceNumber() -
getNumberOfPieces
int getNumberOfPieces() -
isPadFile
boolean isPadFile()is BEP_47 pad file- Returns:
-
getHashTree
-
getRootHash
byte[] getRootHash() -
getAdditionalProperties
Map getAdditionalProperties()
-