Interface TOTorrentCreator

All Known Implementing Classes:
TOTorrentCreatorImpl

public interface TOTorrentCreator
  • Method Details

    • setFileIsLayoutDescriptor

      void setFileIsLayoutDescriptor(boolean b)
      A 'layout descriptor' is a file that explicitly details the construction of the torrent from a collection of files, rather than relying on a natural file system structure. The file is bencoded and consists of a Map with a List called 'file_map'. The sub-maps have two entries: , is a list of Strings that correspond to a virtual folder structure and the logical file name is the absolute path of the physical file or dir
      Parameters:
      b -
    • create

      TOTorrent create() throws TOTorrentException
      Throws:
      TOTorrentException
    • create

      TOTorrent create(boolean skip_hashing) throws TOTorrentException
      Throws:
      TOTorrentException
    • getTorrentDataSizeFromFileOrDir

      long getTorrentDataSizeFromFileOrDir() throws TOTorrentException
      Throws:
      TOTorrentException
    • cancel

      void cancel()
    • addListener

      void addListener(TOTorrentProgressListener listener)
    • removeListener

      void removeListener(TOTorrentProgressListener listener)