Skip to content

The file stream parser that de/encodes "B-encode" data format.

Notifications You must be signed in to change notification settings

soulaway/beecoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

The file stream parser that de/encodes "B-encode" data format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages