Packages that use Storage.TorrentFile
Package
Description
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
Uses of Storage.TorrentFile in org.klomp.snark
Classes in org.klomp.snark that implement interfaces with type arguments of type Storage.TorrentFileFields in org.klomp.snark with type parameters of type Storage.TorrentFileModifier and TypeFieldDescriptionprivate final Set<Storage.TorrentFile> Storage._copyingFiles currently being copied from the staging directory to the data directory, to prevent concurrent duplicate copies (putPiece may be called concurrently).private final List<Storage.TorrentFile> Storage._torrentFilesThe torrent's files, in piece order.Methods in org.klomp.snark that return Storage.TorrentFileModifier and TypeMethodDescription(package private) Storage.TorrentFileStorage.FileCursor.getFile()The file containing the cursor position.Methods in org.klomp.snark that return types with arguments of type Storage.TorrentFileModifier and TypeMethodDescriptionprivate List<Storage.TorrentFile> Storage.getFiles(File base, List<TorrentCreateFilter> filters) Lists the files on disk matching the torrent.Methods in org.klomp.snark with parameters of type Storage.TorrentFileModifier and TypeMethodDescriptionprivate voidStorage.allocateFile(Storage.TorrentFile tf) Extend one torrent file to its full length and report it to the listener, so that reads don't fail with an IOE before the piece arrives.intStorage.TorrentFile.compareTo(Storage.TorrentFile tf) private booleanStorage.copyOnce(Storage.TorrentFile tf) Copies the file from the staging directory to the data directory once.private voidStorage.copyToFinal(Storage.TorrentFile tf) Copies the file to the data directory with a bounded number of retries in case the destination is temporarily unavailable.private voidStorage.recreateFile(Storage.TorrentFile tf) Recreates a missing file at its active location (the staging dir while incomplete, the data dir otherwise).private voidStorage.startCopy(Storage.TorrentFile tf) Starts copying a completed file from the staging directory to the data directory on a background thread, unless a copy for the file is already running.