Class TOTorrentCreateImpl

All Implemented Interfaces:
TOTorrentFileHasherListener, TOTorrent

public class TOTorrentCreateImpl extends TOTorrentImpl implements TOTorrentFileHasherListener
  • Field Details

    • file_comparator

      private static final Comparator<File> file_comparator
    • file_comparator_v2

      private static final Comparator<File> file_comparator_v2
    • torrent_type

      private final int torrent_type
    • torrent_base

      private File torrent_base
    • piece_length

      private long piece_length
    • file_hasher

      private TOTorrentFileHasher file_hasher
    • total_file_size_no_pad

      private long total_file_size_no_pad
    • total_file_count_no_pad

      private long total_file_count_no_pad
    • piece_count_no_pad

      private long piece_count_no_pad
    • add_other_hashes

      private boolean add_other_hashes
    • add_pad_files

      private boolean add_pad_files
    • pad_file_num

      private int pad_file_num
    • pad_file_sizes

      private long pad_file_sizes
    • add_v1

      private final boolean add_v1
    • add_v2

      private final boolean add_v2
    • progress_listeners

      private final List<TOTorrentProgressListener> progress_listeners
    • reported_progress

      private int reported_progress
    • ignore_set

      private Set<String> ignore_set
    • linkage_map

      private Map<String,File> linkage_map
    • linked_tf_map

      private final Map<String,String> linked_tf_map
    • cancelled

      private volatile boolean cancelled
  • Constructor Details

    • TOTorrentCreateImpl

      protected TOTorrentCreateImpl(int _torrent_type, Map<String,File> _linkage_map, File _torrent_base, URL _announce_url, boolean _add_other_hashes, long _piece_length) throws TOTorrentException
      Throws:
      TOTorrentException
    • TOTorrentCreateImpl

      protected TOTorrentCreateImpl(int _torrent_type, Map<String,File> _linkage_map, File _torrent_base, URL _announce_url, boolean _add_other_hashes, long _piece_min_size, long _piece_max_size, long _piece_num_lower, long _piece_num_upper) throws TOTorrentException
      Throws:
      TOTorrentException
  • Method Details