Class ByteBufferTeePrintStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
org.eclipse.epsilon.internal.eunit.io.ByteBufferTeePrintStream
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class ByteBufferTeePrintStream extends PrintStream
PrintStream which performs every write twice: once to the original output stream, and another to an internal byte array, so the full output can be later collected and processed transparently. Since ByteArrayOutputStream.close() and OutputStream.flush() do not do anything, they are not called from this class.
Version:
1.0
Author:
Antonio García-Domínguez