Uses of Class
org.klomp.snark.Snark

Packages that use Snark
org.klomp.snark   
org.klomp.snark.web   
 

Uses of Snark in org.klomp.snark
 

Methods in org.klomp.snark that return Snark
 Snark SnarkManager.addMagnet(String name, byte[] ih, String trackerURL, boolean updateStatus, boolean autoStart, CompleteListener listener)
          Add a torrent with the info hash alone (magnet / maggot) External use is for UpdateRunner.
 Snark SnarkManager.getTorrent(String filename)
          Grab the torrent given the (canonical) filename of the .torrent file
 Snark SnarkManager.getTorrentByBaseName(String filename)
          Grab the torrent given the base name of the storage
 Snark SnarkManager.getTorrentByInfoHash(byte[] infohash)
          Grab the torrent given the info hash
 Snark SnarkManager.stopTorrent(String filename, boolean shouldRemove)
          Stop the torrent, leaving it on the list of torrents unless told to remove it
 

Methods in org.klomp.snark that return types with arguments of type Snark
 Collection<Snark> SnarkManager.getTorrents()
          Unmodifiable
 

Methods in org.klomp.snark with parameters of type Snark
 void SnarkManager.addDownloader(Snark torrent)
          Add and start a FetchAndAdd task.
 void CompleteListener.addMessage(Snark snark, String message)
           
 void UpdateRunner.addMessage(Snark snark, String message)
           
 void SnarkManager.addMessage(Snark snark, String message)
          A Snark.CompleteListener method.
 void SnarkManager.deleteMagnet(Snark snark)
          Stop and delete a torrent running in magnet mode
 void CompleteListener.fatal(Snark snark, String error)
           
 void UpdateRunner.fatal(Snark snark, String error)
           
 void SnarkManager.fatal(Snark snark, String error)
          A Snark.CompleteListener method.
 BitField CompleteListener.getSavedTorrentBitField(Snark snark)
           
 BitField UpdateRunner.getSavedTorrentBitField(Snark snark)
           
 BitField SnarkManager.getSavedTorrentBitField(Snark snark)
          Get the saved bitfield for a torrent from the config file.
 long CompleteListener.getSavedTorrentTime(Snark snark)
           
 long UpdateRunner.getSavedTorrentTime(Snark snark)
           
 long SnarkManager.getSavedTorrentTime(Snark snark)
          Get the timestamp for a torrent from the config file.
 String CompleteListener.gotMetaInfo(Snark snark)
          We transitioned from magnet mode, we have now initialized our metainfo and storage.
 String UpdateRunner.gotMetaInfo(Snark snark)
           
 String SnarkManager.gotMetaInfo(Snark snark)
          We transitioned from magnet mode, we have now initialized our metainfo and storage.
 void CompleteListener.gotPiece(Snark snark)
           
 void UpdateRunner.gotPiece(Snark snark)
           
 void SnarkManager.gotPiece(Snark snark)
          A Snark.CompleteListener method.
 void SnarkManager.loadSavedFilePriorities(Snark snark)
          Get the saved priorities for a torrent from the config file.
 void SnarkManager.stopTorrent(Snark torrent, boolean shouldRemove)
          Stop the torrent, leaving it on the list of torrents unless told to remove it
 void CompleteListener.torrentComplete(Snark snark)
           
 void UpdateRunner.torrentComplete(Snark snark)
           
 void SnarkManager.torrentComplete(Snark snark)
          A Snark.CompleteListener method.
 void CompleteListener.updateStatus(Snark snark)
           
 void UpdateRunner.updateStatus(Snark snark)
          This is called by stopTorrent() among others
 void SnarkManager.updateStatus(Snark snark)
          A Snark.CompleteListener method.
 

Constructors in org.klomp.snark with parameters of type Snark
PeerCoordinator(I2PSnarkUtil util, byte[] id, byte[] infohash, MetaInfo metainfo, Storage storage, CoordinatorListener listener, Snark torrent)
           
TrackerClient(I2PSnarkUtil util, MetaInfo meta, String additionalTrackerURL, PeerCoordinator coordinator, Snark snark)
          Call start() to start it.
 

Uses of Snark in org.klomp.snark.web
 

Subclasses of Snark in org.klomp.snark.web
 class FetchAndAdd
          A cancellable torrent file downloader.