class TimeoutPipedInputStream extends PipedInputStream
buffer, in, out, PIPE_SIZE| Constructor and Description |
|---|
TimeoutPipedInputStream(int pipeSize)TimeoutPipedInputStream. |
| Modifier and Type | Method and 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. |
available, connect, read, receivemark, markSupported, read, reset, skippublic TimeoutPipedInputStream(int pipeSize)
public void close()
throws IOExceptionclose in interface Closeableclose in interface AutoCloseableclose in class PipedInputStreamIOExceptionpublic int read()
throws IOExceptionread in class PipedInputStreamSocketTimeoutException - if timeout is reachedIOExceptionpublic void setReadTimeout(int ms)
ms - less than or equal to zero means forevervoid x_receivedLast()