Class SplitFileOutputStream

java.lang.Object
java.io.OutputStream
eu.steffo.cleaver.logic.split.SplitFileOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class SplitFileOutputStream
extends OutputStream
A custom OutputStream that writes the bytes received in input in multiple files with a progressively increasing number (.c1, .c2, .c3, and so on). Bytes are written to a file until its length reaches maximumByteCount, then the program switches to the following file (.c2 if .c1 is full, .c3 if .c2 is full, and so on).