Package boofcv.io
Class MirrorStream
java.lang.Object
java.io.OutputStream
boofcv.io.MirrorStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An output stream which redirects the data into two different streams. Good for when you want to
log and stills end data to stdout.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
MirrorStream
-
-
Method Details
-
write
public void write(int b) - Specified by:
writein classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
writein classOutputStream
-
flush
public void flush()- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-