SOFTWARE ENGINEERING
Count bytes while writing to a file in real-time
Sometimes it is useful to know how many bytes have already been written to an output stream in Java. In this post we will use CountingOutputStream to achieve this goal easily.