Class OutputStreamComposite

java.lang.Object
java.io.OutputStream
org.refcodes.io.OutputStreamComposite
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class OutputStreamComposite extends OutputStream
A OutputStreamComposite wraps multiple OutputStream instances to which to dispatch any operation applied to the OutputStreamComposite instance. This implementation does not use threads so you may have take care on the order of the OutputStream instances passed to the constructor(s) as the operations a dispatched to the OutputStream instances in that order as they were provided. The OutputStreamComposite is most useful when capturing data written to an OutputStream e.g. with the HexOutputStream type.