The file stream parser that de/encodes "B-encode" data format.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
pom.xml
readme.md

readme.md

Presents the file stream parser that de/encoding "B-encode" data format. That used by the peer-to-peer file sharing system (like BitTorrent) for storing and transmitting loosely structured data.

BeeCoder serialize the ByteArrayInputStream that contains raw data, of supported java objects And deserialize the ObjectInputStream that contains Bencoded types of java objects

Supported types:

  • java.lang.Integer for integers
  • java.lang.String for strings
  • java.util.LinkedList for lists
  • java.util.LinkedList> for dictionaries
  • So client application doesn't needs to import some additional types.

    For dictionary realization was chosen LinkedList<Entry<String, Object>> instead of LinkedHashMap please see benchmark page JSE8 collections insert/iterate benchmark

    Author Dmitry G. Soloviev

    More about bencode. Sources here