Interface TOTorrentFile

All Known Implementing Classes:
TOTorrentFileImpl

public interface TOTorrentFile
  • 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, using File.separator
    • getRelativePath

      String getRelativePath(LocaleUtilDecoder decoder)
    • 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()