org.ujmp.core.util.io
Class TeeStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.PrintStream
-
- org.ujmp.core.util.io.TeeStream
-
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable
public class TeeStream extends java.io.PrintStream
-
-
Constructor Summary
Constructors Constructor and Description TeeStream(java.io.OutputStream out, java.io.OutputStream tee)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()voidflush()voidwrite(byte[] buf, int off, int len)
-
-
-
Method Detail
-
write
public void write(byte[] buf, int off, int len)- Overrides:
writein classjava.io.PrintStream
-
close
public void close()
- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfacejava.lang.AutoCloseable- Overrides:
closein classjava.io.PrintStream
-
flush
public void flush()
- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.PrintStream
-
-
DataMelt 3.0 © DataMelt by jWork.ORG