An output stream for writing bytes to a file in a "rolling" fasion. The filename and rollover point are configurable. Rolling files work by checking if the rollover point (size of file in bytes or time since creation) has been exceeded before every write. If the rollover point is exceeded, the file is closed, renamed to the filename followed by a "_1" (with all previous files "shifted down" by one), and a new file is created. If the "shift down" causes the maximum number of saved files to be exceeded, the oldest file is deleted. Part of this code was taken from Java Web Server
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.