jBittorrentAPI
Class TorrentFile

java.lang.Object
  extended by jBittorrentAPI.TorrentFile

public class TorrentFile
extends java.lang.Object

Representation of a torrent file


Field Summary
 java.lang.String announceURL
           
 java.lang.String comment
           
 java.lang.String createdBy
           
 long creationDate
           
 java.lang.String encoding
           
 byte[] info_hash_as_binary
           
 java.lang.String info_hash_as_hex
           
 java.lang.String info_hash_as_url
           
 java.util.ArrayList length
           
 java.util.ArrayList name
           
 java.util.ArrayList piece_hash_values_as_binary
           
 java.util.ArrayList piece_hash_values_as_hex
           
 java.util.ArrayList piece_hash_values_as_url
           
 int pieceLength
           
 java.lang.String saveAs
           
 long total_length
           
 
Constructor Summary
TorrentFile()
          Create the TorrentFile object and initiate its instance variables
 
Method Summary
 void printData(boolean detailed)
          Print the torrent information in a readable manner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

announceURL

public java.lang.String announceURL

comment

public java.lang.String comment

createdBy

public java.lang.String createdBy

creationDate

public long creationDate

encoding

public java.lang.String encoding

info_hash_as_binary

public byte[] info_hash_as_binary

info_hash_as_hex

public java.lang.String info_hash_as_hex

info_hash_as_url

public java.lang.String info_hash_as_url

length

public java.util.ArrayList length

name

public java.util.ArrayList name

piece_hash_values_as_binary

public java.util.ArrayList piece_hash_values_as_binary

piece_hash_values_as_hex

public java.util.ArrayList piece_hash_values_as_hex

piece_hash_values_as_url

public java.util.ArrayList piece_hash_values_as_url

pieceLength

public int pieceLength

saveAs

public java.lang.String saveAs

total_length

public long total_length
Constructor Detail

TorrentFile

public TorrentFile()
Create the TorrentFile object and initiate its instance variables

Method Detail

printData

public void printData(boolean detailed)
Print the torrent information in a readable manner.

Parameters:
detailed - Choose if we want a detailed output or not. Detailed output prints the comment, the files list and the pieces hashes while the standard output simply prints tracker url, creator, creation date and info hash