Limited extension of the default ObjectOutputStream and ObjectInputStream classes. This allows to enable/disable compression on the different streams, and to gather statistics on the amount/speed of data that is exchanged.