public class TimeoutInputStream extends InputStream
| Constructor and Description |
|---|
TimeoutInputStream(InputStream inputStream,
long timeout,
TimeUnit timeUnit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
available, mark, markSupported, read, read, reset, skippublic TimeoutInputStream(InputStream inputStream, long timeout, TimeUnit timeUnit)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2018. All rights reserved.