org.terracotta.ipceventbus.io
Class MultiplexOutputStream
java.lang.Object
java.io.OutputStream
org.terracotta.ipceventbus.io.MultiplexOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class MultiplexOutputStream
- extends OutputStream
- Author:
- Mathieu Carbou
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiplexOutputStream
public MultiplexOutputStream()
MultiplexOutputStream
public MultiplexOutputStream(OutputStream os)
getOutputStreams
public List<OutputStream> getOutputStreams()
addOutputStream
public MultiplexOutputStream addOutputStream(OutputStream os)
isEmpty
public boolean isEmpty()
streamCount
public int streamCount()
close
public void close()
- Specified by:
close in interface Closeable- Overrides:
close in class OutputStream
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
Copyright © 2015. All rights reserved.