Example of synchronous and threaded ZIP compression approaches in Java.