java.lang.Object
org.klomp.snark.SnarkManager.TorrentInfo
- Enclosing class:
SnarkManager
Result of a DHT metadata lookup — name plus combined size of data files. Size is
MetaInfo.getDataLength() (excludes BEP47 padding), i.e. the sum of getLengths() for non-padding files; for single-file torrents equal to getTotalLength(). Zero if metadata unavailable.Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionTorrentInfo(String name, long size) Assemble the name and size resolved by a metadata lookup.Method Summary
Field Details
name
Torrent display name (MetaInfo.getName()).size
public final long sizeCombined size of data files in bytes (excludes padding).
Constructor Details
TorrentInfo
Assemble the name and size resolved by a metadata lookup.- Parameters:
name- torrent display namesize- combined size of the data files in bytes, zero if unknown
Method Details
toString