class TimeoutOutputStream
extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
private byte[] |
b1 |
private java.io.OutputStream |
os |
private java.util.concurrent.ScheduledExecutorService |
ses |
private int |
timeout |
private java.util.concurrent.Callable<java.lang.Object> |
timeoutTask |
Constructor and Description |
---|
TimeoutOutputStream(java.io.OutputStream os0,
java.util.concurrent.ScheduledExecutorService ses,
int timeout) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(byte[] bs,
int off,
int len) |
void |
write(int b) |
private final java.io.OutputStream os
private final java.util.concurrent.ScheduledExecutorService ses
private final java.util.concurrent.Callable<java.lang.Object> timeoutTask
private final int timeout
private byte[] b1
public TimeoutOutputStream(java.io.OutputStream os0, java.util.concurrent.ScheduledExecutorService ses, int timeout) throws java.io.IOException
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] bs, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException