buttress.io
Class Download

java.lang.Object
  extended bybuttress.io.Download

public class Download
extends java.lang.Object


Constructor Summary
Download(java.net.URL link)
           
 
Method Summary
 void downloadTorrent()
          Takes the url and downloads the files to the local folder, ie the folder where this script is run from
 java.net.URL getDownloadUrl()
          getter for the url of the torrent
 java.lang.String getTorrentName()
          getter for torrentName variable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Download

public Download(java.net.URL link)
Parameters:
link - URL
Method Detail

getTorrentName

public java.lang.String getTorrentName()
getter for torrentName variable

Returns:
torrentName

getDownloadUrl

public java.net.URL getDownloadUrl()
getter for the url of the torrent

Returns:
the downloadUrl of the torrent

downloadTorrent

public void downloadTorrent()
                     throws java.io.FileNotFoundException,
                            java.io.IOException
Takes the url and downloads the files to the local folder, ie the folder where this script is run from

Throws:
FileNotFoundException
IOException