diff options
Diffstat (limited to 'src/main/java/bjc/everge/MirrorOutputStream.java')
| -rw-r--r-- | src/main/java/bjc/everge/MirrorOutputStream.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/bjc/everge/MirrorOutputStream.java b/src/main/java/bjc/everge/MirrorOutputStream.java index 6718bd7..8c99cc9 100644 --- a/src/main/java/bjc/everge/MirrorOutputStream.java +++ b/src/main/java/bjc/everge/MirrorOutputStream.java @@ -14,30 +14,35 @@ public class MirrorOutputStream extends OutputStream { } } + @Override public void close() throws IOException { for (OutputStream stream : streams) { stream.close(); } } + @Override public void flush() throws IOException { for (OutputStream stream : streams) { stream.flush(); } } + @Override public void write(byte[] ba) throws IOException { for (OutputStream stream : streams) { stream.write(ba); } } + @Override public void write(byte[] ba, int off, int len) throws IOException { for (OutputStream stream : streams) { stream.write(ba, off, len); } } + @Override public void write(int b) throws IOException { for (OutputStream stream : streams) { stream.write(b); |
