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
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
MirrorStream
-
-
Method Details
-
write
public void write(int b) - Specified by:
write
in classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
write
in classOutputStream
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
-