Uses of Class
org.klomp.snark.bencode.BEValue
Package
Description
I2P version of the snark bittorrent client, imported in 2005 and heavily enhanced
to add a web UI, DHT support, and other features.
-
Uses of BEValue in org.klomp.snark
ModifierConstructorDescriptionCreates a new MetaInfo from a Map of BEValues and the SHA1 over the original bencoded info dictonary (this is a hack, we could reconstruct the bencoded stream and recalculate the hash).Creates a PeerID from a Map containing BEncoded peer id, ip and port. -
Uses of BEValue in org.klomp.snark.bencode
Modifier and TypeMethodDescriptionBDecoder.bdecode()
Gets the next indicator and returns either null when the stream has ended or bdecodes the rest of the stream and returns the appropriate BEValue encoded object.static BEValue
BDecoder.bdecode
(InputStream in) Creates a new BDecoder and immediatly decodes the first value it sees.BDecoder.bdecodeBytes()
Returns the next bencoded value on the stream and makes sure it is a byte array.BDecoder.bdecodeList()
Returns the next bencoded value on the stream and makes sure it is a list.BDecoder.bdecodeMap()
Returns the next bencoded value on the stream and makes sure it is a map (dictonary).BDecoder.bdecodeNumber()
Returns the next bencoded value on the stream and makes sure it is a number.