Package net.sf.jnati.proc
Class TeeOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- net.sf.jnati.proc.TeeOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class TeeOutputStream extends java.io.OutputStream
- Author:
- Sam Adams
-
-
Constructor Summary
Constructors Constructor Description TeeOutputStream(java.io.OutputStream... streams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
-
-
-
Method Detail
-
close
public void close() throws TeeStreamException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
TeeStreamException
-
flush
public void flush() throws TeeStreamException
- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
- Throws:
TeeStreamException
-
write
public void write(byte[] b, int off, int len) throws TeeStreamException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
TeeStreamException
-
write
public void write(byte[] b) throws TeeStreamException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
TeeStreamException
-
write
public void write(int b) throws TeeStreamException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
TeeStreamException
-
-