public class MergingOutputStream extends OutputStream implements Runnable
Modifier and Type | Field and Description |
---|---|
private ArrayBlockingQueue<byte[]> |
buffers |
private static org.slf4j.Logger |
logger |
private boolean |
open |
private OutputStream |
out |
private int |
QUEUE_SIZE |
private Thread |
thread |
Constructor and Description |
---|
MergingOutputStream(OutputStream out) |
private static final org.slf4j.Logger logger
private final int QUEUE_SIZE
private final ArrayBlockingQueue<byte[]> buffers
private final OutputStream out
private final Thread thread
private boolean open
public MergingOutputStream(OutputStream out)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException