class TimeoutPipedInputStream extends PipedInputStream
buffer, in, out, PIPE_SIZE| Constructor and Description |
|---|
TimeoutPipedInputStream(int pipeSize) |
| 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 void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class PipedInputStreamIOExceptionpublic 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()