A java library for p2p sharing