jBittorrentAPI
Class TorrentFile
java.lang.Object
jBittorrentAPI.TorrentFile
public class TorrentFile
- extends java.lang.Object
Representation of a torrent file
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 |
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
TorrentFile
public TorrentFile()
- Create the TorrentFile object and initiate its instance variables
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