package org.klomp.snark.bencode

Bencode parsing and serialization, the canonical BitTorrent encoding used for torrent files and peer messages.

See also: BEP 3.


  • Class
    Description
    Decodes a bencoded stream to BEValues.
    Converts Java objects to bencoded format for BitTorrent protocol communication.
    Comparator for bencode map keys given as byte arrays.
    Compares bencode map keys given as Strings, in the order the spec requires: as their UTF-8 encodings, byte by byte, with a shorter key that is a prefix of a longer one ordered first.
    Holds different types that a bencoded byte array can represent.
    Exception thrown when a bencoded stream is corrupted or malformed.