Class EchoStream
- java.lang.Object
-
- java.io.OutputStream
-
- ru.vyarus.dropwizard.guice.test.util.io.EchoStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class EchoStream extends java.io.OutputStreamStream duplicates all writes into two streams. Used to write all output into console together with aggregation into separate stream (to be able to inspect output as string).- Since:
- 20.11.2023
-
-
Constructor Summary
Constructors Constructor Description EchoStream(java.io.OutputStream out)Create stream.EchoStream(java.io.OutputStream out, java.io.OutputStream collector)Create stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()voidwrite(int i)
-