Closeable, AutoCloseableclass TimeoutPipedInputStream extends PipedInputStream
buffer, in, out, PIPE_SIZE| Constructor | Description |
|---|---|
TimeoutPipedInputStream(int pipeSize) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Overridden to save state.
|
int |
read() |
|
void |
setReadTimeout(int ms) |
Must be called before blocking read call.
|
(package private) void |
x_receivedLast() |
To save state.
|
mark, markSupported, read, readAllBytes, readNBytes, reset, skip, transferToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitavailable, connect, read, receivepublic int read()
throws IOException
read in class PipedInputStreamSocketTimeoutException - if timeout is reachedIOExceptionpublic void setReadTimeout(int ms)
ms - less than or equal to zero means forevervoid x_receivedLast()
public void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class PipedInputStreamIOException