org.gudy.azureus2.core3.torrent
Interface TOTorrentCreator

All Known Implementing Classes:
TOTorrentCreatorImpl

public interface TOTorrentCreator

Author:
parg

Method Summary
 void addListener(TOTorrentProgressListener listener)
           
 void cancel()
           
 TOTorrent create()
           
 long getTorrentDataSizeFromFileOrDir()
           
 void removeListener(TOTorrentProgressListener listener)
           
 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.
 

Method Detail

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

getTorrentDataSizeFromFileOrDir

long getTorrentDataSizeFromFileOrDir()
                                     throws TOTorrentException
Throws:
TOTorrentException

cancel

void cancel()

addListener

void addListener(TOTorrentProgressListener listener)

removeListener

void removeListener(TOTorrentProgressListener listener)