What order should I use GzipOutputStream and BufferedOutputStream
GZIPOutputStream already comes with a built-in buffer. So, there is no need to put a BufferedOutputStream right next to it in the chain. gojomo’s excellent answer already provides some guidance on where to place the buffer. The default buffer size for GZIPOutputStream is only 512 bytes, so you will want to increase it to 8K … Read more